From 8f5e834f41c4446ac707552b87af70b32950af1f Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 1 Feb 2012 09:34:15 +0000 Subject: cEvent: fixed wrong errorchecking in win32 Set() git-svn-id: http://mc-server.googlecode.com/svn/trunk@213 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cEvent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/cEvent.cpp b/source/cEvent.cpp index aee6b866e..4ed8f65f5 100644 --- a/source/cEvent.cpp +++ b/source/cEvent.cpp @@ -105,7 +105,7 @@ void cEvent::Wait(void) void cEvent::Set(void) { #ifdef _WIN32 - if (SetEvent(m_Event)) + if (!SetEvent(m_Event)) { LOGWARN("cEvent: Could not set cEvent: GLE = %d", GetLastError()); } -- cgit v1.2.3