mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-23 11:17:03 -04:00
[grub] add Grub4DOS support
* Also adds some stubs for Grub 2.0 * Also add a note about VS2013 CE in the readme * Addresses the first part of #340
This commit is contained in:
parent
ca5a9dde5f
commit
306191fb85
17 changed files with 1082 additions and 104 deletions
|
@ -339,6 +339,20 @@ static __inline HANDLE CreateFileU(const char* lpFileName, DWORD dwDesiredAccess
|
|||
return ret;
|
||||
}
|
||||
|
||||
static __inline BOOL CopyFileU(const char* lpExistingFileName, const char* lpNewFileName, BOOL bFailIfExists)
|
||||
{
|
||||
BOOL ret = FALSE;
|
||||
DWORD err = ERROR_INVALID_DATA;
|
||||
wconvert(lpExistingFileName);
|
||||
wconvert(lpNewFileName);
|
||||
ret = CopyFileW(wlpExistingFileName, wlpNewFileName, bFailIfExists);
|
||||
err = GetLastError();
|
||||
wfree(lpExistingFileName);
|
||||
wfree(lpNewFileName);
|
||||
SetLastError(err);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static __inline BOOL DeleteFileU(const char* lpFileName)
|
||||
{
|
||||
BOOL ret = FALSE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue