Rob Shearman : netapi32: Fix character count passed to GetUserNameW and GetComputerNameW in init_wksta_tests .
Alexandre Julliard
julliard at winehq.org
Mon Feb 25 06:51:45 CST 2008
Module: wine
Branch: master
Commit: 38a968ff52ddde3e1a509b839e0af21a7e0898fd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=38a968ff52ddde3e1a509b839e0af21a7e0898fd
Author: Rob Shearman <rob at codeweavers.com>
Date: Mon Feb 25 09:02:26 2008 +0000
netapi32: Fix character count passed to GetUserNameW and GetComputerNameW in init_wksta_tests.
---
dlls/netapi32/tests/wksta.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/netapi32/tests/wksta.c b/dlls/netapi32/tests/wksta.c
index ba68eb4..5eefba4 100644
--- a/dlls/netapi32/tests/wksta.c
+++ b/dlls/netapi32/tests/wksta.c
@@ -48,7 +48,7 @@ static int init_wksta_tests(void)
BOOL rc;
user_name[0] = 0;
- dwSize = sizeof(user_name);
+ dwSize = sizeof(user_name)/sizeof(user_name[0]);
rc=GetUserNameW(user_name, &dwSize);
if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) {
skip("GetUserNameW is not implemented\n");
@@ -57,7 +57,7 @@ static int init_wksta_tests(void)
ok(rc, "User Name Retrieved\n");
computer_name[0] = 0;
- dwSize = sizeof(computer_name);
+ dwSize = sizeof(computer_name)/sizeof(computer_name[0]);
ok(GetComputerNameW(computer_name, &dwSize), "Computer Name Retrieved\n");
return 1;
}
More information about the wine-cvs
mailing list