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