Re: msxml3: Add ISAXContentHandler_endPrefix event (1/7)
5 Aug
2008
5 Aug
'08
8:53 a.m.
Piotr Caban <piotr.caban(a)gmail.com> writes:
+static HRESULT namespacePush(saxlocator *locator, int ns) +{ + if(locator->nsStackLast+1>locator->nsStackSize) + { + locator->nsStackSize += STACKALLOCATIONSIZE; + locator->nsStack = HeapReAlloc(GetProcessHeap(), 0, + locator->nsStack, locator->nsStackSize); + if(!locator->nsStack) return E_FAIL;
You should preserve the existing stack on failure. Also the growth should be by a multiple of the current size instead of a constant. -- Alexandre Julliard julliard(a)winehq.org
6340
Age (days ago)
6340
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard