mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
[kernel32]
fix crash in kernel32_winetest volume svn path=/trunk/; revision=62257
This commit is contained in:
parent
804255bd55
commit
1f1804bc91
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue