]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/private/fswatcher.h
Add EVT_RIBBONBAR_TAB_LEFT_DCLICK event.
[wxWidgets.git] / include / wx / msw / private / fswatcher.h
index 3265c810256dfde531ebf03e3ec7f1c6c9c88f90..99d2a21b1746f2cc8c44debeed2149d5af7ec337 100644 (file)
@@ -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"));