mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 20:19:26 +00:00
[win32k]
- 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:
parent
c88634cff4
commit
a8e5ba3485
1 changed files with 9 additions and 8 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue