X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17b1d76b4add82305463d10b9f65668d06169363..cf283a470ab3eb4bc69959e3b5ae0edf30337fa5:/src/os2/gdiimage.cpp diff --git a/src/os2/gdiimage.cpp b/src/os2/gdiimage.cpp index 0d21c81be0..4c2fee5425 100644 --- a/src/os2/gdiimage.cpp +++ b/src/os2/gdiimage.cpp @@ -300,7 +300,7 @@ wxGDIImageHandler* wxGDIImage::FindHandler( { wxGDIImageHandler* pHandler = pNode->GetData(); - if ( (pHandler->GetExtension() = rExtension) && + if ( (pHandler->GetExtension() == rExtension) && (lType == -1 || pHandler->GetType() == lType) ) { return pHandler; @@ -469,7 +469,7 @@ bool wxICOResourceHandler::LoadIcon( wxIcon* pIcon, { HPOINTER hIcon; - hIcon = ::WinLoadFileIcon( (PSZ)rName.c_str() + hIcon = ::WinLoadFileIcon( rName.c_str() ,TRUE // load for private use );