update for HEAD-2003050101
[reactos.git] / subsys / win32k / main / dllmain.c
index 63a475c..d2f9a2e 100644 (file)
@@ -17,7 +17,7 @@
 #include <include/class.h>
 #include <include/window.h>
 
-//#define NDEBUG
+#define NDEBUG
 #include <win32k/debug1.h>
 
 extern SSDT Win32kSSDT[];
@@ -91,26 +91,39 @@ DllMain (
       return(Status);
     }
 
+  Status = InitTimerImpl();
+  if (!NT_SUCCESS(Status))
+    {
+      DbgPrint("Failed to initialize timer implementation.\n");
+      return(Status);
+    }
+
   return STATUS_SUCCESS;
 }
 
+PEPROCESS W32kDeviceProcess;
 
 BOOLEAN
 STDCALL
 W32kInitialize (VOID)
 {
   DPRINT("in W32kInitialize\n");
+
+  W32kDeviceProcess = PsGetCurrentProcess();
+
   InitGdiObjectHandleTable ();
 
   // Create surface used to draw the internal font onto
+#ifdef TODO
   CreateCellCharSurface();
-
-  // Create stock objects, ie. precreated objects commonly used by win32 applications
-  CreateStockObjects();
+#endif
 
   // Initialize FreeType library
   if(!InitFontSupport()) return FALSE;
 
+  // Create stock objects, ie. precreated objects commonly used by win32 applications
+  CreateStockObjects();
+
   return TRUE;
 }