From: Vadim Zeitlin Date: Wed, 21 Jan 2009 17:08:20 +0000 (+0000) Subject: fix compilation (but not working) of the code in wxUSE_FILESYSTEM==0 case (see #10414) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/00aa89f498450110d0d87686e6e472fd4fc7af18?ds=inline fix compilation (but not working) of the code in wxUSE_FILESYSTEM==0 case (see #10414) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 2b6fda7586..02befc3f43 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -1037,9 +1037,13 @@ static bool DoLaunchDefaultBrowserHelper(const wxString& urlOrig, int flags) if ( uri.GetScheme() == "file" ) { + // TODO: extract URLToFileName() to some always compiled in + // function +#if wxUSE_FILESYSTEM // ShellExecuteEx() doesn't like the "file" scheme when opening local files; // remove it url = wxFileSystem::URLToFileName(url).GetFullPath(); +#endif // wxUSE_FILESYSTEM } }