OSDN Git Service

Windows will kill our process immediately after we return from handling the WM_ENDSES...
authorlordmulder <mulder2@gmx.de>
Tue, 27 Dec 2011 04:47:38 +0000 (05:47 +0100)
committerlordmulder <mulder2@gmx.de>
Tue, 27 Dec 2011 04:47:38 +0000 (05:47 +0100)
commitd5a4aa72e3e7ee373db72e775e8d49aaf2f60def
treefc91858959f24708969b99f4a17912d37ca8448b
parent17d158218651e4b8b9c8cc7a4866c09fd8e46110
Windows will kill our process immediately after we return from handling the WM_ENDSESSION message, so we have to clean-up explicitly *before* returning from the message handler. Not nice, but there is no other way. Also, as Windows will kill our process anyway and thus prevent a proper application shutdown, we can just call exit() from the message handler. This makes sure nothing "unexpected" can happen in the short moment that our application would continue to run after returning from the message handler.
src/Config.h
src/Global.cpp