Module: wine Branch: master Commit: d70d6b8486fc880e8fd72f6d409464deb518a639 URL: https://source.winehq.org/git/wine.git/?a=commit;h=d70d6b8486fc880e8fd72f6d4...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Feb 6 20:26:25 2019 +0100
setupapi/tests: Avoid sizeof in traces.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/setupapi/tests/devinst.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c index 5eb0c6b..804d15b 100644 --- a/dlls/setupapi/tests/devinst.c +++ b/dlls/setupapi/tests/devinst.c @@ -568,7 +568,7 @@ static void test_device_property(void) ok(!ret, "Expect failure\n"); ok(err == ERROR_INSUFFICIENT_BUFFER, "Expect last error %#x, got %#x\n", ERROR_INSUFFICIENT_BUFFER, err); ok(type == DEVPROP_TYPE_STRING, "Expect type %#x, got %#x\n", DEVPROP_TYPE_STRING, type); - ok(size == sizeof(valueW), "Expect size %d, got %d\n", sizeof(valueW), size); + ok(size == sizeof(valueW), "Got size %d\n", size);
/* #7 Zero buffer size */ SetLastError(0xdeadbeef); @@ -579,7 +579,7 @@ static void test_device_property(void) ok(!ret, "Expect failure\n"); ok(err == ERROR_INSUFFICIENT_BUFFER, "Expect last error %#x, got %#x\n", ERROR_INSUFFICIENT_BUFFER, err); ok(type == DEVPROP_TYPE_STRING, "Expect type %#x, got %#x\n", DEVPROP_TYPE_STRING, type); - ok(size == sizeof(valueW), "Expect size %d, got %d\n", sizeof(valueW), size); + ok(size == sizeof(valueW), "Got size %d\n", size);
/* #8 Null required size */ SetLastError(0xdeadbeef); @@ -621,7 +621,7 @@ static void test_device_property(void) ok(ret, "Expect success\n"); ok(err == NO_ERROR, "Expect last error %#x, got %#x\n", NO_ERROR, err); ok(type == DEVPROP_TYPE_STRING, "Expect type %#x, got %#x\n", DEVPROP_TYPE_STRING, type); - ok(size == sizeof(valueW), "Expect size %d, got %d\n", sizeof(valueW), size); + ok(size == sizeof(valueW), "Got size %d\n", size); ok(!lstrcmpW((WCHAR *)buffer, valueW), "Expect buffer %s, got %s\n", wine_dbgstr_w(valueW), wine_dbgstr_w((WCHAR *)buffer));
/* #12 Get null property value */ @@ -649,7 +649,7 @@ static void test_device_property(void) ok(!ret, "Expect failure\n"); ok(err == ERROR_INSUFFICIENT_BUFFER, "Expect last error %#x, got %#x\n", ERROR_INSUFFICIENT_BUFFER, err); ok(type == DEVPROP_TYPE_STRING, "Expect type %#x, got %#x\n", DEVPROP_TYPE_STRING, type); - ok(size == sizeof(valueW), "Expect size %d, got %d\n", sizeof(valueW), size); + ok(size == sizeof(valueW), "Got size %d\n", size);
/* #14 Normal */ ret = pSetupDiSetDevicePropertyW(set, &device_data, &DEVPKEY_Device_FriendlyName, DEVPROP_TYPE_STRING, (const BYTE *)valueW, sizeof(valueW), 0); @@ -663,7 +663,7 @@ static void test_device_property(void) ok(ret, "Expect success\n"); ok(err == NO_ERROR, "Expect last error %#x, got %#x\n", NO_ERROR, err); ok(type == DEVPROP_TYPE_STRING, "Expect type %#x, got %#x\n", DEVPROP_TYPE_STRING, type); - ok(size == sizeof(valueW), "Expect size %d, got %d\n", sizeof(valueW), size); + ok(size == sizeof(valueW), "Got size %d\n", size); ok(!lstrcmpW((WCHAR *)buffer, valueW), "Expect buffer %s, got %s\n", wine_dbgstr_w(valueW), wine_dbgstr_w((WCHAR *)buffer));
ret = SetupDiRemoveDevice(set, &device_data);