mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
netapi32: Fixed buffer sizes to GetUserNameW and GetComputerNameW.
This commit is contained in:
parent
0c4e9df2a1
commit
0025eaefab
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ static int init_access_tests(void)
|
|||
BOOL rc;
|
||||
|
||||
user_name[0] = 0;
|
||||
dwSize = sizeof(user_name);
|
||||
dwSize = sizeof(user_name)/sizeof(WCHAR);
|
||||
rc=GetUserNameW(user_name, &dwSize);
|
||||
if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
|
||||
{
|
||||
|
@ -80,7 +80,7 @@ static int init_access_tests(void)
|
|||
ok(rc, "User Name Retrieved\n");
|
||||
|
||||
computer_name[0] = 0;
|
||||
dwSize = sizeof(computer_name);
|
||||
dwSize = sizeof(computer_name)/sizeof(WCHAR);
|
||||
ok(GetComputerNameW(computer_name, &dwSize), "Computer Name Retrieved\n");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue