mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[USER32]
- Fix wrong size check. Spotted by Thomas svn path=/trunk/; revision=64926
This commit is contained in:
@@ -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;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user