Fix harmless g++ warning about using NULL for non-pointer.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Nov 2009 09:56:52 +0000 (09:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Nov 2009 09:56:52 +0000 (09:56 +0000)
PostQueuedCompletionStatus() may be either an int or a pointer, pass 0 instead
of NULL when we don't care about its value anyhow.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/private/fswatcher.h

index 64c0c2f61692f611b9e0fe7cf398a7a94a79ac6d..99d2a21b1746f2cc8c44debeed2149d5af7ec337 100644 (file)
@@ -161,7 +161,7 @@ public:
     {
         wxCHECK_MSG( m_iocp != INVALID_HANDLE_VALUE, false, "IOCP not init" );
 
-        int ret = PostQueuedCompletionStatus(m_iocp, 0, NULL, NULL);
+        int ret = PostQueuedCompletionStatus(m_iocp, 0, 0, NULL);
         if (!ret)
         {
             wxLogSysError(_("Unable to post completion status"));