20 Aug
2008
20 Aug
'08
11:54 a.m.
Piotr Caban <piotr.caban(a)gmail.com> writes:
@@ -117,6 +120,29 @@ static inline saxattributes *impl_from_ISAXAttributes( ISAXAttributes *iface ) }
+static HRESULT namespacePush(saxlocator *locator, int ns) +{ + if(locator->nsStackLast>=locator->nsStackSize) + { + int *new_stack; + + locator->nsStackSize *= 2; + new_stack = HeapReAlloc(GetProcessHeap(), 0, + locator->nsStack, locator->nsStackSize); + if(!new_stack) return E_OUTOFMEMORY; + locator->nsStack = new_stack;
You need to preserve nsStackSize on error too. -- Alexandre Julliard julliard(a)winehq.org