dpnet/tests: Fix a test failure caused by uninitialized argument.

This commit is contained in:
Nikolay Sivov 2014-11-05 14:35:05 +03:00 committed by Alexandre Julliard
parent 481ff775ca
commit 552d9f3631
1 changed files with 10 additions and 0 deletions

View File

@ -105,12 +105,22 @@ static void address_addcomponents(void)
hr = IDirectPlay8Address_GetComponentByName(localaddr, NULL, &compguid, &size, &type);
ok(hr == E_POINTER, "got 0x%08x\n", hr);
size = sizeof(GUID)-1;
hr = IDirectPlay8Address_GetComponentByName(localaddr, UNKNOWN, NULL, &size, &type);
ok(hr == E_POINTER, "got 0x%08x\n", hr);
size = sizeof(GUID);
hr = IDirectPlay8Address_GetComponentByName(localaddr, UNKNOWN, NULL, &size, &type);
ok(hr == E_POINTER, "got 0x%08x\n", hr);
hr = IDirectPlay8Address_GetComponentByName(localaddr, UNKNOWN, &compguid, NULL, &type);
ok(hr == E_POINTER, "got 0x%08x\n", hr);
size = sizeof(GUID)-1;
hr = IDirectPlay8Address_GetComponentByName(localaddr, UNKNOWN, &compguid, &size, NULL);
ok(hr == E_POINTER, "got 0x%08x\n", hr);
size = sizeof(GUID);
hr = IDirectPlay8Address_GetComponentByName(localaddr, UNKNOWN, &compguid, &size, NULL);
ok(hr == E_POINTER, "got 0x%08x\n", hr);