Module: wine Branch: master Commit: 552d9f3631dc5562a39b14e2cb15f0f5f8315734 URL: http://source.winehq.org/git/wine.git/?a=commit;h=552d9f3631dc5562a39b14e2cb...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Wed Nov 5 14:35:05 2014 +0300
dpnet/tests: Fix a test failure caused by uninitialized argument.
---
dlls/dpnet/tests/address.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/dlls/dpnet/tests/address.c b/dlls/dpnet/tests/address.c index 5908000..bad4fa4 100644 --- a/dlls/dpnet/tests/address.c +++ b/dlls/dpnet/tests/address.c @@ -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);