X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff9aab3c758809448a911892dd89b25b6ce7e95a..a132a1c810bea2d37b09f01524b57440c968de1c:/src/msw/gdiimage.cpp diff --git a/src/msw/gdiimage.cpp b/src/msw/gdiimage.cpp index d8c8824f25..5ca0afc43f 100644 --- a/src/msw/gdiimage.cpp +++ b/src/msw/gdiimage.cpp @@ -408,7 +408,7 @@ bool wxICOFileHandler::LoadIcon(wxIcon *icon, int iconIndex = 0; wxString name1(name); wxString strIconIndex = name.AfterLast(wxT(';')); - if (!strIconIndex.IsEmpty()) + if (strIconIndex != name) { iconIndex = wxAtoi(strIconIndex); name1 = name.BeforeLast(wxT(';'));