From 54bcff35e01d0ec46989ea67ccfc9f787d587288 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 28 Apr 2004 10:48:34 +0000 Subject: [PATCH] let wxFileName::GetModificationTime() work with files already opened [maybe in another application] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 1 + src/common/filename.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index 675b050046..5aff49c6a3 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -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: diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 5bebeedae0..a746dd77b6 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -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 -- 2.45.2