From eb5b252d6436b6b68fae8fdd60c6b13ebc0924b5 Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Fri, 22 Apr 2005 15:01:27 +0000 Subject: [PATCH] Fix Non-ce MSW unicode builds git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/utilscmn.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index b98e0b2d5c..8c42075b45 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -597,13 +597,18 @@ bool wxLaunchDefaultBrowser(const wxString& url) LPShellExecute lpShellExecute = (LPShellExecute) ::GetProcAddress(hShellDll, wxString::Format(wxT("ShellExecute%s"), + #ifdef __WXUNICODE__ wxT("W") #else wxT("A") #endif +#ifdef __WXWINCE__ ) - ); +#else + ).mb_str(wxConvLocal) +#endif + ); if(lpShellExecute == NULL) return false;