[ros-diffs] [mjmartin] 47285: [win32k] - Move the initialization of MasterTimer into InitInputImp which is called from win32k DriverEntry routine instead of initializing it in the secondary thread RawInputThreadMain.

mjmartin at svn.reactos.org mjmartin at svn.reactos.org
Thu May 20 23:45:15 CEST 2010


Author: mjmartin
Date: Thu May 20 23:45:15 2010
New Revision: 47285

URL: http://svn.reactos.org/svn/reactos?rev=47285&view=rev
Log:
[win32k]
- Move the initialization of MasterTimer into InitInputImp which is called from win32k DriverEntry routine instead of initializing it in the secondary thread RawInputThreadMain.


Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/input.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/input.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/input.c?rev=47285&r1=47284&r2=47285&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] Thu May 20 23:45:15 2010
@@ -868,14 +868,6 @@
   NTSTATUS Status;
   LARGE_INTEGER DueTime;
 
-  MasterTimer = ExAllocatePoolWithTag(NonPagedPool, sizeof(KTIMER), TAG_INPUT);
-  if (!MasterTimer)
-  {
-     DPRINT1("Win32K: Failed making Raw Input thread a win32 thread.\n");
-     return;
-  }
-  KeInitializeTimer(MasterTimer);
-
   DueTime.QuadPart = (LONGLONG)(-10000000);
 
   do
@@ -936,6 +928,15 @@
    NTSTATUS Status;
 
    KeInitializeEvent(&InputThreadsStart, NotificationEvent, FALSE);
+
+   MasterTimer = ExAllocatePoolWithTag(NonPagedPool, sizeof(KTIMER), TAG_INPUT);
+   if (!MasterTimer)
+   {
+      DPRINT1("Win32K: Failed making Raw Input thread a win32 thread.\n");
+      ASSERT(FALSE);
+      return STATUS_UNSUCCESSFUL;
+   }
+   KeInitializeTimer(MasterTimer);
 
    /* Initialize the default keyboard layout */
    if(!UserInitDefaultKeyboardLayout())




More information about the Ros-diffs mailing list