X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b8ef0b35d674bc262eb2005ac1321762c831d31..dec53e5a560eeaffd5927f000101dd473fd83c13:/include/wx/msw/private/fswatcher.h diff --git a/include/wx/msw/private/fswatcher.h b/include/wx/msw/private/fswatcher.h index 664c8eccaa..99d2a21b17 100644 --- a/include/wx/msw/private/fswatcher.h +++ b/include/wx/msw/private/fswatcher.h @@ -78,10 +78,13 @@ private: // asynchronous watched with ReadDirectoryChangesW static HANDLE OpenDir(const wxString& path) { - HANDLE handle = CreateFile(path, FILE_LIST_DIRECTORY, - FILE_SHARE_READ | FILE_SHARE_WRITE | + HANDLE handle = CreateFile(path.t_str(), + FILE_LIST_DIRECTORY, + FILE_SHARE_READ | + FILE_SHARE_WRITE | FILE_SHARE_DELETE, - NULL, OPEN_EXISTING, + NULL, + OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OVERLAPPED, NULL); @@ -158,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")); @@ -179,7 +182,7 @@ public: wxCHECK_MSG( overlapped != NULL, false, "Null out parameter 'overlapped'"); - int ret = GetQueuedCompletionStatus(m_iocp, count, (PULONG_PTR)watch, + int ret = GetQueuedCompletionStatus(m_iocp, count, (ULONG_PTR *)watch, overlapped, INFINITE); if (!ret) {