X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=process.cpp;h=c0b65df32e66aee12528139ec29c90dcb18eb59a;hb=8663869ce7d0e0aedbd05dcba47f5472f7ac8c2e;hp=e96265d655211a9ddd521809c7cbbe3b5c32daa7;hpb=11226a6ddf6ad8e763b1241392949982f10222c4;p=nssm.git diff --git a/process.cpp b/process.cpp index e96265d..c0b65df 100644 --- 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;