user32: Remove redundant sizeof check.
This commit is contained in:
parent
7e50d67d7e
commit
7d4605db41
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue