mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 08:52:57 +00:00
[NTDLL:LDR]
- Fix logic error in LdrpInit that caused us to busy-wait instead of sleep. This makes LibreOffice start up in a few seconds instead of sitting around at 100% CPU for a minute or two. CORE-13268 #resolve svn path=/trunk/; revision=74600
This commit is contained in:
parent
8a30da51a0
commit
a9757a1ab0
1 changed files with 2 additions and 2 deletions
|
@ -2223,11 +2223,11 @@ LdrpInit(PCONTEXT Context,
|
||||||
1,
|
1,
|
||||||
0) == 1)
|
0) == 1)
|
||||||
{
|
{
|
||||||
/* Set the timeout to 30 seconds */
|
/* Set the timeout to 30 milliseconds */
|
||||||
Timeout.QuadPart = Int32x32To64(30, -10000);
|
Timeout.QuadPart = Int32x32To64(30, -10000);
|
||||||
|
|
||||||
/* Make sure the status hasn't changed */
|
/* Make sure the status hasn't changed */
|
||||||
while (!LdrpProcessInitialized)
|
while (LdrpProcessInitialized == 1)
|
||||||
{
|
{
|
||||||
/* Do the wait */
|
/* Do the wait */
|
||||||
ZwDelayExecution(FALSE, &Timeout);
|
ZwDelayExecution(FALSE, &Timeout);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue