X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd8734512097f8d12766074c464037d6441cbd27..8758875e0b001444cb677906e68912cb455ab275:/src/msw/textentry.cpp?ds=sidebyside diff --git a/src/msw/textentry.cpp b/src/msw/textentry.cpp index 79c0fa201e..b763b5de8e 100644 --- a/src/msw/textentry.cpp +++ b/src/msw/textentry.cpp @@ -51,7 +51,7 @@ #include "wx/msw/ole/oleutils.h" #include -#if defined(__MINGW32__) +#if defined(__MINGW32__) || defined (__WATCOMC__) // needed for IID_IAutoComplete, IID_IAutoComplete2 and ACO_AUTOSUGGEST #include #endif @@ -295,9 +295,7 @@ bool wxTextEntry::AutoCompleteFileNames() static wxDynamicLibrary s_dllShlwapi; if ( s_pfnSHAutoComplete == (SHAutoComplete_t)-1 ) { - wxLogNull noLog; - - if ( !s_dllShlwapi.Load(_T("shlwapi.dll"), wxDL_VERBATIM) ) + if ( !s_dllShlwapi.Load(_T("shlwapi.dll"), wxDL_VERBATIM | wxDL_QUIET) ) { s_pfnSHAutoComplete = NULL; } @@ -375,6 +373,8 @@ bool wxTextEntry::AutoComplete(const wxArrayString& choices) pAutoComplete->Release(); return true; #else // !HAS_AUTOCOMPLETE + wxUnusedVar(choices); + return false; #endif // HAS_AUTOCOMPLETE/!HAS_AUTOCOMPLETE }