From 96ad3e4eb49763a433e5919fdd37cf44bbf2d657 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Fri, 6 Apr 2007 22:16:17 +0000 Subject: [PATCH] Bugfix (comparision vs. assignment). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/gdiimage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.45.2