Fix parameter passing in NtGdiCreateDC.
[reactos.git] / reactos / subsys / win32k / objects / dc.c
index 8f0983b..846f306 100644 (file)
@@ -987,7 +987,9 @@ NtGdiCreateDC(PUNICODE_STRING Driver,
     }
   }
 
-  Ret = IntGdiCreateDC(&SafeDriver, &SafeDevice, NULL, &SafeInitData, FALSE);
+  Ret = IntGdiCreateDC(NULL == Driver ? NULL : &SafeDriver,
+                       NULL == Device ? NULL : &SafeDevice, NULL,
+                       NULL == InitData ? NULL : &SafeInitData, FLASE);
 
   return Ret;
 }