git://git.iain.cx/iain
/
nssm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ensure we have a valid service exit time.
[nssm.git]
/
process.cpp
diff --git
a/process.cpp
b/process.cpp
index
e96265d
..
c0b65df
100644
(file)
--- a/
process.cpp
+++ b/
process.cpp
@@
-23,6
+23,7
@@
int get_process_exit_time(HANDLE process_handle, FILETIME *ft) {
return 1;
}
+ if (! (exit_time.dwLowDateTime || exit_time.dwHighDateTime)) return 2;
memmove(ft, &exit_time, sizeof(exit_time));
return 0;