On Sat, Nov 28, 2009 at 5:04 PM, Laurent Vromman <laurent(a)vromman.org> wrote:
> - pStrokes = HeapAlloc(GetProcessHeap(), 0, numStrokes *
> sizeof(GdiPath*));
> - pStrokes[0] = HeapAlloc(GetProcessHeap(), 0, sizeof(GdiPath));
> - PATH_InitGdiPath(pStrokes[0]);
> - pStrokes[0]->pFlags = HeapAlloc(GetProcessHeap(), 0,
> pPath->numEntriesUsed * sizeof(INT));
> - pStrokes[0]->pPoints = HeapAlloc(GetProcessHeap(), 0,
> pPath->numEntriesUsed * sizeof(POINT));
> - pStrokes[0]->numEntriesUsed = 0;
> + pStrokes = NULL;
...
Wait, wouldn't it be simpler to keep the initial alloc, as in the attachment?
- Dan