- Fix wrong size check.
Spotted by Thomas

svn path=/trunk/; revision=64926
This commit is contained in:
Jérôme Gardou 2014-10-23 15:40:13 +00:00
parent d617e9abfc
commit 532e8139c5

View file

@ -397,7 +397,7 @@ get_best_icon_file_entry(
if ( dwFileSize < sizeof(*dir) )
return NULL;
if (dwFileSize < (sizeof(*dir) + FIELD_OFFSET(CURSORICONFILEDIR, idEntries[dir->idCount])))
if (dwFileSize < FIELD_OFFSET(CURSORICONFILEDIR, idEntries[dir->idCount]))
return NULL;
/*