msxml3: Add ISAXContentHandler_endPrefix event (1/9) [try2]
Alexandre Julliard
julliard at winehq.org
Wed Aug 20 06:54:18 CDT 2008
Piotr Caban <piotr.caban at 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 at winehq.org
More information about the wine-devel
mailing list