]> git.saurik.com Git - wxWidgets.git/commitdiff
let wxFileName::GetModificationTime() work with files already opened [maybe in anothe...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 Apr 2004 10:48:34 +0000 (10:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 Apr 2004 10:48:34 +0000 (10:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/common/filename.cpp

index 675b050046a1d780efe70de1c5528d4b750d34d9..5aff49c6a3af0fe86707c233f601925012d65099 100644 (file)
@@ -123,6 +123,7 @@ wxMSW:
   even try to do it by default -- now it does
 - wxTaskBarIcon must be explicitly destroyed now, otherwise the application
   won't exit even though there are no top level windows
+- wxFileName::GetModificationTime() works with opened files too now
 
 wxMotif:
 
index 5bebeedae0ff0eb549e2c5686a70204d8bd0164b..a746dd77b65b97fb90a7ee4d726b5ad3df392833 100644 (file)
@@ -163,7 +163,8 @@ public:
                      filename,                      // name
                      mode == Read ? GENERIC_READ    // access mask
                                   : GENERIC_WRITE,
-                     0,                             // no sharing
+                     FILE_SHARE_READ |              // sharing mode
+                     FILE_SHARE_WRITE,              // (allow everything)
                      NULL,                          // no secutity attr
                      OPEN_EXISTING,                 // creation disposition
                      0,                             // no flags