Fix parameter passing in NtGdiCreateDC.
Modified: trunk/reactos/subsys/win32k/objects/dc.c

Modified: trunk/reactos/subsys/win32k/objects/dc.c
--- trunk/reactos/subsys/win32k/objects/dc.c	2005-12-07 18:37:49 UTC (rev 19954)
+++ trunk/reactos/subsys/win32k/objects/dc.c	2005-12-07 22:11:25 UTC (rev 19955)
@@ -987,7 +987,9 @@
     }
   }
 
-  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;
 }