Author: jimtabor
Date: Wed Dec 23 21:12:28 2009
New Revision: 44745
URL:
http://svn.reactos.org/svn/reactos?rev=44745&view=rev
Log:
[Win32k]
- Set error if no handle is provided.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/region.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/region.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/region.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/region.c [iso-8859-1] Wed Dec 23
21:12:28 2009
@@ -2186,6 +2186,7 @@
else if (src2Rgn == NULL)
{
DPRINT1("IntGdiCombineRgn requires hSrc2 != NULL for combine mode
%d!\n", CombineMode);
+ SetLastWin32Error(ERROR_INVALID_HANDLE);
}
}
}
@@ -2193,6 +2194,7 @@
else
{
DPRINT("IntGdiCombineRgn: hDest unavailable\n");
+ SetLastWin32Error(ERROR_INVALID_HANDLE);
result = ERROR;
}
return result;
@@ -2248,6 +2250,7 @@
else if (hSrc2 == NULL)
{
DPRINT1("NtGdiCombineRgn requires hSrc2 != NULL for combine mode
%d!\n", CombineMode);
+ SetLastWin32Error(ERROR_INVALID_HANDLE);
}
}
@@ -2259,6 +2262,7 @@
else
{
DPRINT("NtGdiCombineRgn: hDest unavailable\n");
+ SetLastWin32Error(ERROR_INVALID_HANDLE);
result = ERROR;
}