return (HANDLE) NULL;
// inserted by P.S.
- while( (nDirEntries < iconFileHead.wResourceCount) &&
+ while( ((unsigned)nDirEntries < iconFileHead.wResourceCount) &&
((iconFileRes.bWidth != nWidth) || (iconFileRes.bHeight != nHeight)))
{
cbRes = _lread( hFile, (LPSTR )&iconFileRes, sizeof( ICONFILERES));
return (HANDLE) NULL;
// following added by P.S.
- while( (nDirEntries < curFileHead.wResourceCount) &&
+ while( ((unsigned)nDirEntries < curFileHead.wResourceCount) &&
((curFileRes.bWidth != nWidth) || (curFileRes.bHeight != nHeight)))
{
cbRes = _lread( hFile, (LPSTR )&curFileRes, sizeof( CURFILERES));