kernel32: GetCurrentDirectoryW gets characters, not bytes.
This commit is contained in:
parent
d553a0883f
commit
c1d262f66d
|
@ -1911,7 +1911,7 @@ BOOL WINAPI GetVolumePathNameW(LPCWSTR filename, LPWSTR volumepathname, DWORD bu
|
||||||
goto cleanup;
|
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 */
|
/* if the path is completely bogus then revert to the drive of the working directory */
|
||||||
fallbackpathW[0] = cwdW[0];
|
fallbackpathW[0] = cwdW[0];
|
||||||
|
|
Loading…
Reference in New Issue