oleaut32: Explicitly initialize idReserved field in the icon directory header.

This commit is contained in:
Dmitry Timoshkov 2012-06-01 15:36:59 +09:00 committed by Alexandre Julliard
parent c1136218e2
commit 4c88239742
1 changed files with 1 additions and 0 deletions

View File

@ -1642,6 +1642,7 @@ static int serializeIcon(HICON hIcon, void ** ppBuffer, unsigned int * pLength)
pIconDir = (CURSORICONFILEDIR *)pIconData; pIconDir = (CURSORICONFILEDIR *)pIconData;
pIconDir->idType = 1; pIconDir->idType = 1;
pIconDir->idCount = 1; pIconDir->idCount = 1;
pIconDir->idReserved = 0;
/* Fill out the CURSORICONFILEDIRENTRY */ /* Fill out the CURSORICONFILEDIRENTRY */
pIconEntry = (CURSORICONFILEDIRENTRY *)(pIconData + 3 * sizeof(WORD)); pIconEntry = (CURSORICONFILEDIRENTRY *)(pIconData + 3 * sizeof(WORD));