ole32/tests: Fix crashes in usrmarshal.
This commit is contained in:
parent
061b50eda5
commit
9c9762d1ab
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue