[1/4] oleaut32: Explicitly initialize idReserved field in the icon directory header.

Dmitry Timoshkov dmitry at baikal.ru
Fri Jun 1 01:36:59 CDT 2012


Please apply this set after "oleaut32: Recognize icon and cursor in the being loaded data."
---
 dlls/oleaut32/olepicture.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index 0e3fd21..246114c 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -1642,6 +1642,7 @@ static int serializeIcon(HICON hIcon, void ** ppBuffer, unsigned int * pLength)
 			pIconDir = (CURSORICONFILEDIR *)pIconData;
 			pIconDir->idType = 1;
 			pIconDir->idCount = 1;
+			pIconDir->idReserved = 0;
 
 			/* Fill out the CURSORICONFILEDIRENTRY */
 			pIconEntry = (CURSORICONFILEDIRENTRY *)(pIconData + 3 * sizeof(WORD));
-- 
1.7.10.1




More information about the wine-patches mailing list