ole32/tests: Fix crashes in usrmarshal.

This commit is contained in:
Greg Geldorp 2011-01-02 10:55:07 +01:00 committed by Alexandre Julliard
parent 061b50eda5
commit 9c9762d1ab
1 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,7 @@ static void test_marshal_HGLOBAL(void)
wirehglobal += sizeof(ULONG);
ok(*(ULONG *)wirehglobal == 0, "buffer+4 should be HGLOBAL\n");
init_user_marshal_cb(&umcb, &stub_msg, &rpc_msg, buffer, size, MSHCTX_LOCAL);
hglobal2 = NULL;
HGLOBAL_UserUnmarshal(&umcb.Flags, buffer, &hglobal2);
ok(hglobal2 == hglobal, "Didn't unmarshal properly\n");
HeapFree(GetProcessHeap(), 0, buffer);
@ -227,6 +228,7 @@ static void test_marshal_HGLOBAL(void)
ok(wirehglobal[i] == i, "buffer+0x%x should be %d\n", 0x10 + i, i);
init_user_marshal_cb(&umcb, &stub_msg, &rpc_msg, buffer, size, MSHCTX_LOCAL);
hglobal2 = NULL;
HGLOBAL_UserUnmarshal(&umcb.Flags, buffer, &hglobal2);
ok(hglobal2 != NULL, "Didn't unmarshal properly\n");
HeapFree(GetProcessHeap(), 0, buffer);