http://git.etersoft.ru/people/dimbor/packages
/
opennx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30049fa
)
Djelf - 19_TestStartNXWin
author
dimbor
<i@dimbor.ru>
Fri, 13 Feb 2015 23:57:13 +0000
(
02:57
+0300)
committer
dimbor
<i@dimbor.ru>
Fri, 13 Feb 2015 23:57:13 +0000
(
02:57
+0300)
osdep.c
patch
|
blob
|
blame
|
history
diff --git
a/osdep.c
b/osdep.c
index 8f0c59b23ef3871fa2344083af6bb442b1c0b9a3..2d4f58ca85d2d3c20d0e77911458ee8cf51e12f9 100644
(file)
--- a/
osdep.c
+++ b/
osdep.c
@@
-437,6
+437,12
@@
int CreateDetachedProcess(const char *cmdline) {
if (CreateProcessA(NULL, (char *)cmdline, NULL, NULL,
FALSE, dwFlags, NULL, NULL, &si, &pi)) {
detachedPID = pi.dwProcessId;
+ //{ Djelf
+ if (WaitForSingleObject(pi.hProcess, 500) == 0) {
+ detachedPID = 0;
+ return GetLastError();
+ }
+ //} Djelf
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
return 0;