Nikolay Sivov : dpnet/tests: Fix a test failure caused by uninitialized argument.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Nov 5 08:59:38 CST 2014
Module: wine
Branch: master
Commit: 552d9f3631dc5562a39b14e2cb15f0f5f8315734
URL: http://source.winehq.org/git/wine.git/?a=commit;h=552d9f3631dc5562a39b14e2cb15f0f5f8315734
Author: Nikolay Sivov <nsivov at 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);
More information about the wine-cvs
mailing list