mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 19:31:31 +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;
|
NTSTATUS Status;
|
||||||
LARGE_INTEGER DueTime;
|
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);
|
DueTime.QuadPart = (LONGLONG)(-10000000);
|
||||||
|
|
||||||
do
|
do
|
||||||
|
@ -937,6 +929,15 @@ InitInputImpl(VOID)
|
||||||
|
|
||||||
KeInitializeEvent(&InputThreadsStart, NotificationEvent, FALSE);
|
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 */
|
/* Initialize the default keyboard layout */
|
||||||
if(!UserInitDefaultKeyboardLayout())
|
if(!UserInitDefaultKeyboardLayout())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue