mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:05:44 +00:00
[NETAPI32_WINETEST] Sync with Wine Staging 4.0. CORE-15682
This commit is contained in:
parent
98fa9b2cfc
commit
08e76d6087
2 changed files with 6 additions and 6 deletions
|
@ -74,7 +74,7 @@ static BOOL init_access_tests(void)
|
||||||
BOOL rc;
|
BOOL rc;
|
||||||
|
|
||||||
user_name[0] = 0;
|
user_name[0] = 0;
|
||||||
dwSize = sizeof(user_name)/sizeof(WCHAR);
|
dwSize = ARRAY_SIZE(user_name);
|
||||||
rc=GetUserNameW(user_name, &dwSize);
|
rc=GetUserNameW(user_name, &dwSize);
|
||||||
if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
|
if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
|
||||||
{
|
{
|
||||||
|
@ -84,7 +84,7 @@ static BOOL init_access_tests(void)
|
||||||
ok(rc, "User Name Retrieved\n");
|
ok(rc, "User Name Retrieved\n");
|
||||||
|
|
||||||
computer_name[0] = 0;
|
computer_name[0] = 0;
|
||||||
dwSize = sizeof(computer_name)/sizeof(WCHAR);
|
dwSize = ARRAY_SIZE(computer_name);
|
||||||
ok(GetComputerNameW(computer_name, &dwSize), "Computer Name Retrieved\n");
|
ok(GetComputerNameW(computer_name, &dwSize), "Computer Name Retrieved\n");
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -521,7 +521,7 @@ static void test_DavGetHTTPFromUNCPath(void)
|
||||||
ok( ret == ERROR_INSUFFICIENT_BUFFER, "got %u\n", ret );
|
ok( ret == ERROR_INSUFFICIENT_BUFFER, "got %u\n", ret );
|
||||||
ok( size == 12, "got %u\n", size );
|
ok( size == 12, "got %u\n", size );
|
||||||
|
|
||||||
for (i = 0; i < sizeof(tests)/sizeof(tests[0]); i++)
|
for (i = 0; i < ARRAY_SIZE(tests); i++)
|
||||||
{
|
{
|
||||||
buf[0] = 0;
|
buf[0] = 0;
|
||||||
size = tests[i].size;
|
size = tests[i].size;
|
||||||
|
@ -685,7 +685,7 @@ static void test_DavGetUNCFromHTTPPath(void)
|
||||||
ok( ret == ERROR_INSUFFICIENT_BUFFER, "got %u\n", ret );
|
ok( ret == ERROR_INSUFFICIENT_BUFFER, "got %u\n", ret );
|
||||||
ok( size == 25, "got %u\n", size );
|
ok( size == 25, "got %u\n", size );
|
||||||
|
|
||||||
for (i = 0; i < sizeof(tests)/sizeof(tests[0]); i++)
|
for (i = 0; i < ARRAY_SIZE(tests); i++)
|
||||||
{
|
{
|
||||||
buf[0] = 0;
|
buf[0] = 0;
|
||||||
size = tests[i].size;
|
size = tests[i].size;
|
||||||
|
|
|
@ -50,7 +50,7 @@ static BOOL init_wksta_tests(void)
|
||||||
BOOL rc;
|
BOOL rc;
|
||||||
|
|
||||||
user_name[0] = 0;
|
user_name[0] = 0;
|
||||||
dwSize = sizeof(user_name)/sizeof(user_name[0]);
|
dwSize = ARRAY_SIZE(user_name);
|
||||||
rc=GetUserNameW(user_name, &dwSize);
|
rc=GetUserNameW(user_name, &dwSize);
|
||||||
if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) {
|
if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) {
|
||||||
win_skip("GetUserNameW is not implemented\n");
|
win_skip("GetUserNameW is not implemented\n");
|
||||||
|
@ -59,7 +59,7 @@ static BOOL init_wksta_tests(void)
|
||||||
ok(rc, "User Name Retrieved\n");
|
ok(rc, "User Name Retrieved\n");
|
||||||
|
|
||||||
computer_name[0] = 0;
|
computer_name[0] = 0;
|
||||||
dwSize = sizeof(computer_name)/sizeof(computer_name[0]);
|
dwSize = ARRAY_SIZE(computer_name);
|
||||||
ok(GetComputerNameW(computer_name, &dwSize), "Computer Name Retrieved\n");
|
ok(GetComputerNameW(computer_name, &dwSize), "Computer Name Retrieved\n");
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue