From e0b3e85b5a3cf492e176b1a8e6f13d23cda3acf4 Mon Sep 17 00:00:00 2001 From: Jouk Jansen Date: Fri, 12 Nov 1999 10:53:52 +0000 Subject: [PATCH] Committing in . VMS patch Modified Files: wxWindows/src/generic/helpext.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/helpext.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/generic/helpext.cpp b/src/generic/helpext.cpp index 51ab04b34e..abac836452 100644 --- a/src/generic/helpext.cpp +++ b/src/generic/helpext.cpp @@ -115,12 +115,18 @@ wxExtHelpController::DisplayHelp(wxString const &relativeURL) { wxString lockfile; wxGetHomeDir(&lockfile); +#ifdef __VMS__ + lockfile << WXEXTHELP_SEPARATOR << wxT(".netscape]lock."); + struct stat statbuf; + if(stat(lockfile.fn_str(), &statbuf) == 0) +#else lockfile << WXEXTHELP_SEPARATOR << wxT(".netscape/lock"); struct stat statbuf; if(lstat(lockfile.fn_str(), &statbuf) == 0) // cannot use wxFileExists, because it's a link pointing to a // non-existing location if(wxFileExists(lockfile)) - { +#endif + { long success; command << m_BrowserName << wxT(" -remote openURL(") << wxT("file://") << m_MapFile -- 2.45.2