gdiplus: Tidy up graphics constructor.

This commit is contained in:
Evan Stade 2007-06-22 19:27:02 -07:00 committed by Alexandre Julliard
parent 02efd4bbf1
commit 6490dadb23
1 changed files with 3 additions and 2 deletions

View File

@ -116,8 +116,9 @@ GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
if(graphics == NULL)
return InvalidParameter;
*graphics = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
sizeof(GpGraphics));
*graphics = GdipAlloc(sizeof(GpGraphics));
if(!*graphics) return OutOfMemory;
(*graphics)->hdc = hdc;
(*graphics)->hwnd = NULL;