aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPär Björklund <per.bjorklund@gmail.com>2021-10-19 10:53:52 +0200
committerPär Björklund <per.bjorklund@gmail.com>2021-10-19 10:53:52 +0200
commit32a8c2bd4e7e67cec3f7ba140ea37b5e8863cc19 (patch)
treecc0c0758b09b452db06941bf88cbc7ab00cf4023 /lib
parent258fe34fcb915b82a1347c5022ebd1f51a1e482a (diff)
Fix error with pointer comparison
Did not show up in vs2019 but did show up with vs2022 preview 5.
Diffstat (limited to 'lib')
-rw-r--r--lib/libUPnP/Neptune/Source/System/Win32/NptWin32Threads.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libUPnP/Neptune/Source/System/Win32/NptWin32Threads.cpp b/lib/libUPnP/Neptune/Source/System/Win32/NptWin32Threads.cpp
index 8f3c6b7a0d..3ab979ad3b 100644
--- a/lib/libUPnP/Neptune/Source/System/Win32/NptWin32Threads.cpp
+++ b/lib/libUPnP/Neptune/Source/System/Win32/NptWin32Threads.cpp
@@ -441,7 +441,7 @@ NPT_Win32Thread::NPT_Win32Thread(NPT_Thread* delegator,
m_Delegator(delegator),
m_Target(target),
m_Detached(detached),
- m_ThreadHandle(0),
+ m_ThreadHandle(nullptr),
m_ThreadId(0)
{
}
@@ -567,7 +567,7 @@ NPT_Win32Thread::EntryPoint(void* argument)
NPT_Result
NPT_Win32Thread::Start()
{
- if (m_ThreadHandle > 0) {
+ if (m_ThreadHandle != nullptr) {
// failed
NPT_LOG_WARNING("thread already started !");
return NPT_ERROR_INVALID_STATE;