Commit 56a232b4 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

mpr/tests: Use the available ARRAY_SIZE() macro.

parent e48f3490
......@@ -60,7 +60,7 @@ static void test_WNetGetUniversalName(void)
ok(ret == WN_NOT_CONNECTED || ret == WN_NO_NET_OR_BAD_PATH,
"(%s) WNetGetUniversalNameW gave wrong error: %u\n", driveA, ret);
fail_size = sizeof(driveA) / sizeof(char) - 1;
fail_size = ARRAY_SIZE(driveA) - 1;
ret = WNetGetUniversalNameA(driveA, UNIVERSAL_NAME_INFO_LEVEL,
buffer, &fail_size);
if(drive_type == DRIVE_REMOTE)
......@@ -132,7 +132,7 @@ static void test_WNetGetRemoteName(void)
ok(ret == WN_NOT_CONNECTED || ret == WN_BAD_VALUE,
"(%s) WNetGetUniversalNameA gave wrong error: %u\n", driveA, ret);
fail_size = sizeof(driveA) / sizeof(char) - 1;
fail_size = ARRAY_SIZE(driveA) - 1;
ret = WNetGetUniversalNameA(driveA, REMOTE_NAME_INFO_LEVEL,
buffer, &fail_size);
if(drive_type == DRIVE_REMOTE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment