X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..a51fb6427c1036779a67b92ff0976c0a735ab0c3:/src/msw/curico.cpp diff --git a/src/msw/curico.cpp b/src/msw/curico.cpp index c8df51825e..4e8f97154d 100644 --- a/src/msw/curico.cpp +++ b/src/msw/curico.cpp @@ -111,7 +111,7 @@ HANDLE ReadIcon( wxChar *szFileName, int *W, int *H) return (HANDLE) NULL; // inserted by P.S. - while( ((unsigned)nDirEntries < iconFileHead.wResourceCount) && + while( (nDirEntries < iconFileHead.wResourceCount) && ((iconFileRes.bWidth != nWidth) || (iconFileRes.bHeight != nHeight))) { cbRes = _lread( hFile, (LPSTR )&iconFileRes, sizeof( ICONFILERES)); @@ -359,7 +359,7 @@ HANDLE ReadCur( wxChar *szFileName, LPPOINT lpptHotSpot, int *W, int *H) return (HANDLE) NULL; // following added by P.S. - while( ((unsigned)nDirEntries < curFileHead.wResourceCount) && + while( (nDirEntries < curFileHead.wResourceCount) && ((curFileRes.bWidth != nWidth) || (curFileRes.bHeight != nHeight))) { cbRes = _lread( hFile, (LPSTR )&curFileRes, sizeof( CURFILERES));