X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f12921dc97a067e9316836243bac71c39d00217..a65b84f43417c8d0d156d63ae12474b29d1a739c:/include/wx/msw/private/fswatcher.h diff --git a/include/wx/msw/private/fswatcher.h b/include/wx/msw/private/fswatcher.h index 3265c81025..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"));