user32: Remove redundant sizeof check.

This commit is contained in:
Michael Stefaniuc 2012-10-24 10:24:00 +02:00 committed by Alexandre Julliard
parent 7e50d67d7e
commit 7d4605db41
1 changed files with 0 additions and 3 deletions

View File

@ -1330,9 +1330,6 @@ static HICON CURSORICON_LoadFromFile( LPCWSTR filename,
}
dir = (const CURSORICONFILEDIR*) bits;
if ( filesize < sizeof(*dir) )
goto end;
if ( filesize < (sizeof(*dir) + sizeof(dir->idEntries[0])*(dir->idCount-1)) )
goto end;