gdiplus: GdipLoadImageFromStream: initialize variable.

This commit is contained in:
Dan Kegel 2008-04-22 16:52:56 -07:00 committed by Alexandre Julliard
parent f994306a02
commit 8c8262510d
1 changed files with 1 additions and 0 deletions

View File

@ -759,6 +759,7 @@ GpStatus WINGDIPAPI GdipLoadImageFromStream(IStream* stream, GpImage **image)
IPicture_get_Handle(pic, &hbm);
IPicture_get_CurDC(pic, &hdc);
ZeroMemory(&bmi, sizeof(bmi));
bmch = (BITMAPCOREHEADER*) (&bmi.bmiHeader);
bmch->bcSize = sizeof(BITMAPCOREHEADER);