diff --git a/include/wx/msw/private/fswatcher.h b/include/wx/msw/private/fswatcher.h index 55c2aab927..43397c136f 100644 --- a/include/wx/msw/private/fswatcher.h +++ b/include/wx/msw/private/fswatcher.h @@ -236,7 +236,7 @@ public: // This function can block forever in it's wait for completion status. // Use PostEmptyStatus() to wake it up (and end the worker thread) Status - GetStatus(unsigned long* count, wxFSWatchEntryMSW** watch, + GetStatus(DWORD* count, wxFSWatchEntryMSW** watch, OVERLAPPED** overlapped) { wxCHECK_MSG( m_iocp != INVALID_HANDLE_VALUE, Status_Error, diff --git a/src/msw/fswatcher.cpp b/src/msw/fswatcher.cpp index cbfc0a8860..7269112f52 100644 --- a/src/msw/fswatcher.cpp +++ b/src/msw/fswatcher.cpp @@ -221,7 +221,7 @@ wxThread::ExitCode wxIOCPThread::Entry() // true otherwise bool wxIOCPThread::ReadEvents() { - unsigned long count = 0; + DWORD count = 0; wxFSWatchEntryMSW* watch = NULL; OVERLAPPED* overlapped = NULL; switch ( m_iocp->GetStatus(&count, &watch, &overlapped) )