gdiplus: GdipLoadImageFromStream: initialize variable.
This commit is contained in:
parent
f994306a02
commit
8c8262510d
|
@ -759,6 +759,7 @@ GpStatus WINGDIPAPI GdipLoadImageFromStream(IStream* stream, GpImage **image)
|
||||||
IPicture_get_Handle(pic, &hbm);
|
IPicture_get_Handle(pic, &hbm);
|
||||||
IPicture_get_CurDC(pic, &hdc);
|
IPicture_get_CurDC(pic, &hdc);
|
||||||
|
|
||||||
|
ZeroMemory(&bmi, sizeof(bmi));
|
||||||
bmch = (BITMAPCOREHEADER*) (&bmi.bmiHeader);
|
bmch = (BITMAPCOREHEADER*) (&bmi.bmiHeader);
|
||||||
bmch->bcSize = sizeof(BITMAPCOREHEADER);
|
bmch->bcSize = sizeof(BITMAPCOREHEADER);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue