- Move the initialization of MasterTimer into InitInputImp which is called from win32k DriverEntry routine instead of initializing it in the secondary thread RawInputThreadMain.


svn path=/trunk/; revision=47285
This commit is contained in:
Michael Martin 2010-05-20 21:45:15 +00:00
parent c88634cff4
commit a8e5ba3485

View file

@ -868,14 +868,6 @@ RawInputThreadMain(PVOID StartContext)
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
@ -937,6 +929,15 @@ InitInputImpl(VOID)
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())
{