mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user