X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..37b8e6798782278fdfe4f3c1291aaff55cdbb8c9:/src/os2/icon.cpp diff --git a/src/os2/icon.cpp b/src/os2/icon.cpp index d4ef849d8f..d3d3f49313 100644 --- a/src/os2/icon.cpp +++ b/src/os2/icon.cpp @@ -87,6 +87,7 @@ bool wxIcon::LoadFile( ) { wxGDIImageHandler* pHandler = FindHandler(lType); + HPS hPs = NULLHANDLE; UnRef(); m_refData = new wxIconRefData; @@ -94,6 +95,7 @@ bool wxIcon::LoadFile( if (pHandler) return(pHandler->Load( this ,rFilename + ,hPs ,lType ,nDesiredWidth ,nDesiredHeight