Fix the translation of dest to DestW, having it be NULL vs "" has
different meanings for MoveFileEx.
This commit is contained in:
parent
bac6e12c05
commit
087de7d439
|
@ -1122,7 +1122,13 @@ BOOL WINAPI MoveFileExA( LPCSTR source, LPCSTR dest, DWORD flag )
|
|||
BOOL ret;
|
||||
|
||||
if (!(sourceW = FILE_name_AtoW( source, FALSE ))) return FALSE;
|
||||
if (!(destW = FILE_name_AtoW( dest, TRUE ))) return FALSE;
|
||||
if (dest)
|
||||
{
|
||||
if (!(destW = FILE_name_AtoW( dest, TRUE ))) return FALSE;
|
||||
}
|
||||
else
|
||||
destW = NULL;
|
||||
|
||||
ret = MoveFileExW( sourceW, destW, flag );
|
||||
HeapFree( GetProcessHeap(), 0, destW );
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue