Fixed typo in call to SignalObjectAndWait.
[mono.git] / mono / utils / mono-os-wait-win32.c
index 5d18a717588d8ee49348fe1b188bbd7a8cdcebe9..85706182bdc1657896e444676d486883bfe389d0 100644 (file)
@@ -155,7 +155,7 @@ mono_win32_signal_object_and_wait (HANDLE toSignal, HANDLE toWait, DWORD timeout
                enter_alertable_wait (info);
        }
 
-       result = SignalObjectAndWait (toSignal, towlower, timeout, alertable);
+       result = SignalObjectAndWait (toSignal, toWait, timeout, alertable);
 
        // NOTE, leave_alertable_wait should not affect GetLastError but
        // if changed, last error need to be preserved and reset before returning.