]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/mimetype.cpp
Check for NULL pointer
[wxWidgets.git] / src / msw / mimetype.cpp
index 53a0551e81464ef09a9482d966ff07778ff8778a..c5d50392128f1f54584c63055cfdcfc9e449d0eb 100644 (file)
@@ -41,7 +41,7 @@
 
 #ifdef __WXMSW__
     #include "wx/msw/registry.h"
-    #include "windows.h"
+    #include "wx/msw/private.h"
 #endif // OS
 
 #include "wx/msw/mimetype.h"
@@ -374,6 +374,8 @@ bool wxFileTypeImpl::GetIcon(wxIcon *icon,
 
                 default:
                     icon->SetHICON((WXHICON)hIcon);
+                    wxSize size = wxGetHiconSize(hIcon);
+                    icon->SetSize(size);
                     if ( iconIndex )
                         *iconIndex = nIndex;
                     if ( iconFile )