Piotr Caban piotr.caban@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.