mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 15:08:29 +00:00
Only trigger the installer thread after we got the user token.
Fixes a race condition mostly occuring under real hardware. See issue #4390 for more details. svn path=/trunk/; revision=40576
This commit is contained in:
parent
c2f98d4d61
commit
88a83af301
1 changed files with 2 additions and 5 deletions
|
@ -234,9 +234,6 @@ DWORD PNP_ReportLogOn(
|
|||
|
||||
DPRINT("PNP_ReportLogOn(%u, %u) called\n", Admin, ProcessId);
|
||||
|
||||
if (hInstallEvent != NULL)
|
||||
SetEvent(hInstallEvent);
|
||||
|
||||
/* Get the users token */
|
||||
hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, ProcessId);
|
||||
|
||||
|
@ -259,8 +256,8 @@ DWORD PNP_ReportLogOn(
|
|||
}
|
||||
|
||||
/* Trigger the installer thread */
|
||||
/*if (hInstallEvent != NULL)
|
||||
SetEvent(hInstallEvent);*/
|
||||
if (hInstallEvent)
|
||||
SetEvent(hInstallEvent);
|
||||
|
||||
ReturnValue = CR_SUCCESS;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue