From: Vadim Zeitlin Date: Fri, 23 Oct 2009 11:44:41 +0000 (+0000) Subject: Compilation fix for wxFileSystemWatcher in MSW STL build. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/918a8731fb98a8c153c8bc392ddf601112f6c08b Compilation fix for wxFileSystemWatcher in MSW STL build. Don't rely on implicit wxString to TCHAR* conversion, use t_str() explicitly. Closes #11368. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/private/fswatcher.h b/include/wx/msw/private/fswatcher.h index 3265c81025..64c0c2f616 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);