diff --git a/reactos/ntoskrnl/ke/wait.c b/reactos/ntoskrnl/ke/wait.c index 34741238bcb..12dcd29fa48 100644 --- a/reactos/ntoskrnl/ke/wait.c +++ b/reactos/ntoskrnl/ke/wait.c @@ -738,7 +738,7 @@ NtWaitForMultipleObjects(IN ULONG Count, if (Status != STATUS_SUCCESS) { /* dereference all referenced objects */ - for (j = 0; j < i; i++) + for (j = 0; j < i; j++) { ObDereferenceObject(ObjectPtrArray[j]); }