Rémi Bernon (@rbernon) commented about dlls/windows.media.speech/tests/speech.c:
ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr); SetEvent(compilation_handler.event_block);
ok(!WaitForSingleObject(blocked_thread, 1000), "Wait for block_thread failed.\n");
ok(!WaitForSingleObject(compilation_handler.event_unblock, 1000), "Wait for event_unblock failed.\n");
Here it would just wait on the thread handle, even if it didn't previously block.