oleaut32: Set safearray pointer to NULL in LPSAFEARRAY_UserFree.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6183f4fc7d
commit
3815eca268
|
@ -277,6 +277,7 @@ static void test_marshal_LPSAFEARRAY(void)
|
|||
ok(lpsa2->cLocks == 0, "got lock count %u, expected 0\n", lpsa2->cLocks);
|
||||
init_user_marshal_cb(&umcb, &stub_msg, &rpc_msg, NULL, 0, MSHCTX_DIFFERENTMACHINE);
|
||||
LPSAFEARRAY_UserFree(&umcb.Flags, &lpsa2);
|
||||
ok(!lpsa2, "lpsa2 was not set to 0 by LPSAFEARRAY_UserFree\n");
|
||||
HeapFree(GetProcessHeap(), 0, buffer);
|
||||
lpsa->cLocks = 0;
|
||||
hr = SafeArrayDestroy(lpsa);
|
||||
|
|
|
@ -1091,6 +1091,7 @@ void WINAPI LPSAFEARRAY_UserFree(ULONG *pFlags, LPSAFEARRAY *ppsa)
|
|||
TRACE("("); dump_user_flags(pFlags); TRACE(", &%p\n", *ppsa);
|
||||
|
||||
SafeArrayDestroy(*ppsa);
|
||||
*ppsa = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue