diff options
Diffstat (limited to 'plugins/NewAwaySysMod/src/Client.cpp')
| -rw-r--r-- | plugins/NewAwaySysMod/src/Client.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NewAwaySysMod/src/Client.cpp b/plugins/NewAwaySysMod/src/Client.cpp index f83dc3a0be..92dbffb9c4 100644 --- a/plugins/NewAwaySysMod/src/Client.cpp +++ b/plugins/NewAwaySysMod/src/Client.cpp @@ -25,8 +25,8 @@  #define PARSE_INTERVAL 10000
 -HANDLE g_hTerminateUpdateMsgsThread = NULL;
 -HANDLE g_hUpdateMsgsThread = NULL;
 +HANDLE g_hTerminateUpdateMsgsThread = nullptr;
 +HANDLE g_hUpdateMsgsThread = nullptr;
  void __cdecl UpdateMsgsThreadProc(void *)
  {
 @@ -71,11 +71,11 @@ void InitUpdateMsgs()  		SetEvent(g_hTerminateUpdateMsgsThread);
  		QueueUserAPC(DummyAPCFunc, g_hUpdateMsgsThread, 0); // wake up the thread, as it's most probably in SleepEx() now
  		WaitForSingleObject(g_hUpdateMsgsThread, INFINITE);
 -		g_hUpdateMsgsThread = NULL;
 +		g_hUpdateMsgsThread = nullptr;
  		CloseHandle(g_hTerminateUpdateMsgsThread);
  	}
  	else if (!g_hUpdateMsgsThread && UpdateMsgs) {
 -		g_hTerminateUpdateMsgsThread = CreateEvent(NULL, TRUE, FALSE, NULL);
 +		g_hTerminateUpdateMsgsThread = CreateEvent(nullptr, TRUE, FALSE, nullptr);
  		g_hUpdateMsgsThread = (HANDLE)mir_forkthread(UpdateMsgsThreadProc, NULL);
  	}
  }
  | 
