fix(event): use ExitProcess() to actually exit on Windows, exit() doesn't work

This commit is contained in:
superp00t 2023-08-17 05:43:24 -04:00
parent b9b5a06067
commit 5c75a80a15

View File

@ -3,9 +3,17 @@
#include "event/Queue.hpp"
#include <common/Time.hpp>
#if defined(WHOA_SYSTEM_WIN)
#include <windows.h>
#endif
void SynthesizeDestroy(EvtContext* context) {
// TODO
#if defined(WHOA_SYSTEM_WIN)
ExitProcess(0);
#else
exit(0);
#endif
}
void SynthesizeIdle(EvtContext* context, uint32_t currTime, float elapsedSec) {