X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c9a19aabab3a878b565e6c2a5f2a3824277c4dc..41b78190adf985fa6e91a34aba76b1693a8ffc72:/src/msw/mimetype.cpp diff --git a/src/msw/mimetype.cpp b/src/msw/mimetype.cpp index bc4e634a05..6ce8557e4e 100644 --- a/src/msw/mimetype.cpp +++ b/src/msw/mimetype.cpp @@ -368,6 +368,7 @@ bool wxFileTypeImpl::GetIcon(wxIcon *icon, int nIndex = wxAtoi(strIndex); HICON hIcon = ExtractIcon(GetModuleHandle(NULL), strExpPath, nIndex); + switch ( (int)hIcon ) { case 0: // means no icons were found case 1: // means no such file or it wasn't a DLL/EXE/OCX/ICO/...