Commit 087de7d4 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Fix the translation of dest to DestW, having it be NULL vs "" has

different meanings for MoveFileEx.
parent bac6e12c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment