Replace WaitForSingleObject with WaitForSingleObjectEx,
for better WinRT compatibility.
diff --git a/PC/launcher.c b/PC/launcher.c
index dfad44a..df2580b 100644
--- a/PC/launcher.c
+++ b/PC/launcher.c
@@ -535,7 +535,7 @@
error(RC_CREATE_PROCESS, L"Unable to create process using '%s'", cmdline);
AssignProcessToJobObject(job, pi.hProcess);
CloseHandle(pi.hThread);
- WaitForSingleObject(pi.hProcess, INFINITE);
+ WaitForSingleObjectEx(pi.hProcess, INFINITE, FALSE);
ok = GetExitCodeProcess(pi.hProcess, &rc);
if (!ok)
error(RC_CREATE_PROCESS, L"Failed to get exit code of process");