kernel32: GetCurrentDirectoryW gets characters, not bytes.

This commit is contained in:
Marcus Meissner 2015-06-26 09:01:27 +02:00 committed by Alexandre Julliard
parent d553a0883f
commit c1d262f66d
1 changed files with 1 additions and 1 deletions

View File

@ -1911,7 +1911,7 @@ BOOL WINAPI GetVolumePathNameW(LPCWSTR filename, LPWSTR volumepathname, DWORD bu
goto cleanup;
}
}
else if (GetCurrentDirectoryW( sizeof(cwdW), cwdW ))
else if (GetCurrentDirectoryW( sizeof(cwdW)/sizeof(cwdW[0]), cwdW ))
{
/* if the path is completely bogus then revert to the drive of the working directory */
fallbackpathW[0] = cwdW[0];