Signed-off-by: Shawn M. Chapla schapla@codeweavers.com --- dlls/gdiplus/graphics.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 57022003249..c3542b3d65d 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -5192,7 +5192,14 @@ GpStatus gdip_format_string(HDC hdc, }
if (hotkeyprefix_count) + { hotkeyprefix_offsets = heap_alloc_zero(sizeof(INT) * hotkeyprefix_count); + if (!hotkeyprefix_offsets) + { + heap_free(stringdup); + return OutOfMemory; + } + }
hotkeyprefix_count = 0;
@@ -6555,6 +6562,7 @@ GpStatus WINGDIPAPI GdipDrawPolygonI(GpGraphics *graphics,GpPen *pen,GDIPCONST G
if(count<=0) return InvalidParameter; ptf = heap_alloc_zero(sizeof(GpPointF) * count); + if (!ptf) return OutOfMemory;
for(i = 0;i < count; i++){ ptf[i].X = (REAL)points[i].X;