]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
Fix memory leak by letting the base class version handle the
[wxWidgets.git] / src / common / filename.cpp
index 5bebeedae0ff0eb549e2c5686a70204d8bd0164b..d7bbe92a0b922a0b90ce57fd190d7cbb2e312ad7 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     28.12.2000
 // RCS-ID:      $Id$
 // Copyright:   (c) 2000 Robert Roebling
-// Licence:     wxWindows licence
+// Licence:     wxWidgets licence
 /////////////////////////////////////////////////////////////////////////////
 
 /*
@@ -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