[kernel32]

fix crash in kernel32_winetest volume

svn path=/trunk/; revision=62257
This commit is contained in:
Christoph von Wittich 2014-02-19 19:44:05 +00:00
parent 804255bd55
commit 1f1804bc91

View file

@ -552,6 +552,12 @@ GetVolumePathNameW(IN LPCWSTR lpszFileName,
DWORD ErrorCode;
BOOL Result = FALSE;
if (!lpszFileName || !lpszVolumePathName || !cchBufferLength)
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
if (!(PathLength = GetFullPathNameW(lpszFileName, 0, NULL, NULL)))
{
return Result;