From 35f89c78de88229cdf0e478dba82002b4b081ed3 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 23 Dec 2009 20:12:28 +0000 Subject: [PATCH] [Win32k] - Set error if no handle is provided. svn path=/trunk/; revision=44745 --- reactos/subsystems/win32/win32k/objects/region.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/subsystems/win32/win32k/objects/region.c b/reactos/subsystems/win32/win32k/objects/region.c index 77d7b4d22c4..2ec036a891f 100644 --- a/reactos/subsystems/win32/win32k/objects/region.c +++ b/reactos/subsystems/win32/win32k/objects/region.c @@ -2186,6 +2186,7 @@ IntGdiCombineRgn(PROSRGNDATA destRgn, else if (src2Rgn == NULL) { DPRINT1("IntGdiCombineRgn requires hSrc2 != NULL for combine mode %d!\n", CombineMode); + SetLastWin32Error(ERROR_INVALID_HANDLE); } } } @@ -2193,6 +2194,7 @@ IntGdiCombineRgn(PROSRGNDATA destRgn, else { DPRINT("IntGdiCombineRgn: hDest unavailable\n"); + SetLastWin32Error(ERROR_INVALID_HANDLE); result = ERROR; } return result; @@ -2248,6 +2250,7 @@ NtGdiCombineRgn(HRGN hDest, else if (hSrc2 == NULL) { DPRINT1("NtGdiCombineRgn requires hSrc2 != NULL for combine mode %d!\n", CombineMode); + SetLastWin32Error(ERROR_INVALID_HANDLE); } } @@ -2259,6 +2262,7 @@ NtGdiCombineRgn(HRGN hDest, else { DPRINT("NtGdiCombineRgn: hDest unavailable\n"); + SetLastWin32Error(ERROR_INVALID_HANDLE); result = ERROR; }