diff --git a/ZRCola/zrcolaapp.h b/ZRCola/zrcolaapp.h index 5319f65..caa1595 100644 --- a/ZRCola/zrcolaapp.h +++ b/ZRCola/zrcolaapp.h @@ -90,7 +90,7 @@ public: protected: #ifdef __WXMSW__ - winstd::win_handle m_running; ///< Global Win32 event to determine if another instance of ZRCola is already running + winstd::win_handle m_running; ///< Global Win32 event to determine if another instance of ZRCola is already running #endif }; diff --git a/ZRColaCompile/dbsource.cpp b/ZRColaCompile/dbsource.cpp index 5aae632..bf22f07 100644 --- a/ZRColaCompile/dbsource.cpp +++ b/ZRColaCompile/dbsource.cpp @@ -56,7 +56,7 @@ void ZRCola::DBSource::character_bank::build_related() ZRCola::DBSource::character_bank::build_related_worker::build_related_worker(_In_ const character_bank *cb, _In_ iterator from, _In_ iterator to) : - win_handle((HANDLE)_beginthreadex(NULL, 0, process, this, CREATE_SUSPENDED, NULL)), + win_handle((HANDLE)_beginthreadex(NULL, 0, process, this, CREATE_SUSPENDED, NULL)), m_heap(HeapCreate(0, 0, 0)), m_cb(cb), m_from(from), diff --git a/ZRColaCompile/dbsource.h b/ZRColaCompile/dbsource.h index c2df884..21d2659 100644 --- a/ZRColaCompile/dbsource.h +++ b/ZRColaCompile/dbsource.h @@ -269,14 +269,14 @@ namespace ZRCola { void build_related(); protected: - class build_related_worker : public winstd::win_handle + class build_related_worker : public winstd::win_handle { public: build_related_worker(_In_ const character_bank *cb, _In_ iterator from, _In_ iterator to); inline void join() { - if (m_h) + if (m_h != invalid) WaitForSingleObject(m_h, INFINITE); } diff --git a/lib/WinStd b/lib/WinStd index 51a82c2..f47faea 160000 --- a/lib/WinStd +++ b/lib/WinStd @@ -1 +1 @@ -Subproject commit 51a82c242fe35b6cc1444cb6c61e8004704c13c8 +Subproject commit f47faea71bd5f0dec9b549a6ebd6f5a711b805c8