Author: cwittich
Date: Wed Feb 19 19:44:05 2014
New Revision: 62257
URL:
http://svn.reactos.org/svn/reactos?rev=62257&view=rev
Log:
[kernel32]
fix crash in kernel32_winetest volume
Modified:
trunk/reactos/dll/win32/kernel32/client/file/volume.c
Modified: trunk/reactos/dll/win32/kernel32/client/file/volume.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/volume.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/volume.c [iso-8859-1] Wed Feb 19 19:44:05
2014
@@ -552,6 +552,12 @@
DWORD ErrorCode;
BOOL Result = FALSE;
+ if (!lpszFileName || !lpszVolumePathName || !cchBufferLength)
+ {
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
+ }
+
if (!(PathLength = GetFullPathNameW(lpszFileName, 0, NULL, NULL)))
{
return Result;