X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/780d7317eda90f5f2ac353f6b7a72142d4cd3180..b0d8bfa6cd4042d3ea8680ad0145f79e3cb15268:/src/msw/stdpaths.cpp diff --git a/src/msw/stdpaths.cpp b/src/msw/stdpaths.cpp index 6bf5c71422..3b815eac7b 100644 --- a/src/msw/stdpaths.cpp +++ b/src/msw/stdpaths.cpp @@ -106,6 +106,8 @@ static ShellFunctions gs_shellFuncs; static void ResolveShellFunctions() { +#if wxUSE_DYNLIB_CLASS + // start with the newest functions, fall back to the oldest ones #ifdef __WXWINCE__ wxString shellDllName(_T("coredll")); @@ -117,8 +119,7 @@ static void ResolveShellFunctions() wxDynamicLibrary dllShellFunctions( shellDllName ); if ( !dllShellFunctions.IsLoaded() ) { - wxString traceMessage = wxString::Format( _T("Failed to load %s.dll"), shellDllName ); - wxLogTrace(TRACE_MASK, traceMessage ); + wxLogTrace(TRACE_MASK, _T("Failed to load %s.dll"), shellDllName.c_str() ); } // don't give errors if the functions are unavailable, we're ready to deal @@ -154,6 +155,7 @@ static void ResolveShellFunctions() // because we also link to it statically, so it's ok gs_shellFuncs.initialized = true; +#endif } // ============================================================================