Author: jgardou
Date: Thu Oct 23 15:40:13 2014
New Revision: 64926
URL:
http://svn.reactos.org/svn/reactos?rev=64926&view=rev
Log:
[USER32]
- Fix wrong size check.
Spotted by Thomas
Modified:
trunk/reactos/win32ss/user/user32/windows/cursoricon_new.c
Modified: trunk/reactos/win32ss/user/user32/windows/cursoricon_new.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/cursoricon_new.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/cursoricon_new.c [iso-8859-1] Thu Oct 23
15:40:13 2014
@@ -397,7 +397,7 @@
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;
/*