Author: tfaber
Date: Fri May 19 19:11:14 2017
New Revision: 74600
URL:
http://svn.reactos.org/svn/reactos?rev=74600&view=rev
Log:
[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
Modified:
trunk/reactos/dll/ntdll/ldr/ldrinit.c
Modified: trunk/reactos/dll/ntdll/ldr/ldrinit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/ldrinit.c?re…
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/ldrinit.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/ldr/ldrinit.c [iso-8859-1] Fri May 19 19:11:14 2017
@@ -2223,11 +2223,11 @@
1,
0) == 1)
{
- /* Set the timeout to 30 seconds */
+ /* Set the timeout to 30 milliseconds */
Timeout.QuadPart = Int32x32To64(30, -10000);
/* Make sure the status hasn't changed */
- while (!LdrpProcessInitialized)
+ while (LdrpProcessInitialized == 1)
{
/* Do the wait */
ZwDelayExecution(FALSE, &Timeout);