Fix stack corruption. Thanks to Waxdragon and the fact he uses an -O2 build (hint...
[reactos.git] / reactos / ntoskrnl / ex / work.c
index c375f24..5af58d8 100644 (file)
@@ -425,7 +425,7 @@ ExpWorkerThreadBalanceManager(IN PVOID Context)
     KTIMER Timer;
     LARGE_INTEGER Timeout;
     NTSTATUS Status;
     KTIMER Timer;
     LARGE_INTEGER Timeout;
     NTSTATUS Status;
-    PVOID WaitEvents[2];
+    PVOID WaitEvents[3];
     PAGED_CODE();
     UNREFERENCED_PARAMETER(Context);
 
     PAGED_CODE();
     UNREFERENCED_PARAMETER(Context);