From: Vadim Zeitlin Date: Thu, 16 Jun 2011 15:13:56 +0000 (+0000) Subject: Use symbolic WAIT_FAILED constant instead of raw -1. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/53d7ab954538275e0ad7a272f254c2420a4b4186?ds=sidebyside Use symbolic WAIT_FAILED constant instead of raw -1. No real changes, just make the code slightly more readable by using a symbolic constant instead of a magic value. This also avoids g++ warnings about implicit conversion of a signed value (-1) to unsigned type (DWORD). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/utilsexc.cpp b/src/msw/utilsexc.cpp index 6fc63c0ee1..2887ce5340 100644 --- a/src/msw/utilsexc.cpp +++ b/src/msw/utilsexc.cpp @@ -1010,7 +1010,7 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler, wxFAIL_MSG( wxT("unexpected WaitForInputIdle() return code") ); // fall through - case -1: + case WAIT_FAILED: wxLogLastError(wxT("WaitForInputIdle() in wxExecute")); case WAIT_TIMEOUT: