some os/2 icon-bitmap fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,8 +43,8 @@
|
||||
|
||||
void wxIconRefData::Free()
|
||||
{
|
||||
if ( m_hIcon )
|
||||
::DestroyIcon((HICON) m_hIcon);
|
||||
if (m_hIcon)
|
||||
::WinFreeFileIcon((HPOINTER)m_hIcon);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -88,7 +88,7 @@ bool wxIcon::LoadFile(
|
||||
, int nDesiredHeight
|
||||
)
|
||||
{
|
||||
wxGDIImageHandler* pHandler = FindHandler(type);
|
||||
wxGDIImageHandler* pHandler = FindHandler(lType);
|
||||
|
||||
UnRef();
|
||||
m_refData = new wxIconRefData;
|
||||
|
Reference in New Issue
Block a user