aboutsummaryrefslogtreecommitdiff
path: root/zencore/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zencore/thread.cpp')
-rw-r--r--zencore/thread.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp
index 452ec6079..ba26fef36 100644
--- a/zencore/thread.cpp
+++ b/zencore/thread.cpp
@@ -400,8 +400,11 @@ ProcessHandle::Reset()
{
if (IsValid())
{
+#if ZEN_PLATFORM_WINDOWS
CloseHandle(m_ProcessHandle);
+#endif
m_ProcessHandle = nullptr;
+ m_Pid = 0;
}
}