X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43543d985b04d065178df50dbbc998786ff97282..5333ab8e8ef81e3ae71fef22b42542c51b122258:/src/os2/icon.cpp diff --git a/src/os2/icon.cpp b/src/os2/icon.cpp index b03ecf734e..d3d3f49313 100644 --- a/src/os2/icon.cpp +++ b/src/os2/icon.cpp @@ -29,9 +29,7 @@ #include "wx/icon.h" -#if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxIconBase) -#endif // ============================================================================ // implementation @@ -89,6 +87,7 @@ bool wxIcon::LoadFile( ) { wxGDIImageHandler* pHandler = FindHandler(lType); + HPS hPs = NULLHANDLE; UnRef(); m_refData = new wxIconRefData; @@ -96,6 +95,7 @@ bool wxIcon::LoadFile( if (pHandler) return(pHandler->Load( this ,rFilename + ,hPs ,lType ,nDesiredWidth ,nDesiredHeight