[WIN32K:NTGDI]
authorThomas Faber <thomas.faber@reactos.org>
Tue, 18 Aug 2015 10:25:45 +0000 (10:25 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 18 Aug 2015 10:25:45 +0000 (10:25 +0000)
- Allow NULL rectangle in NtGdiSetBoundsRect as shown by the test. Fixes a bunch of annoying first chance exceptions

svn path=/trunk/; revision=68751

reactos/win32ss/gdi/ntgdi/dcutil.c

index 8a3b554..25d7ea8 100644 (file)
@@ -689,7 +689,7 @@ NtGdiSetBoundsRect(
         RECTL_vSetEmptyRect(&pdc->erclBoundsApp);
     }
 
-    if (flags & DCB_ACCUMULATE)
+    if (flags & DCB_ACCUMULATE && prc != NULL)
     {
         /* Capture the rect */
         _SEH2_TRY