]> git.saurik.com Git - wxWidgets.git/commitdiff
Bugfix (comparision vs. assignment).
authorStefan Neis <Stefan.Neis@t-online.de>
Fri, 6 Apr 2007 22:16:17 +0000 (22:16 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Fri, 6 Apr 2007 22:16:17 +0000 (22:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/gdiimage.cpp

index 0d21c81be07966255c235c9ee2e20b5dcf27fe97..4c2fee54259d262a30f38f03f2d458fefa288fc6 100644 (file)
@@ -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
                              );