Module: wine Branch: master Commit: 0025eaefabffae8b465e5e9326c978fe4aa3b84e URL: http://source.winehq.org/git/wine.git/?a=commit;h=0025eaefabffae8b465e5e9326... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sat Oct 25 12:10:10 2008 +0200 netapi32: Fixed buffer sizes to GetUserNameW and GetComputerNameW. --- dlls/netapi32/tests/access.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/netapi32/tests/access.c b/dlls/netapi32/tests/access.c index 1cc71b9..dfa68ef 100644 --- a/dlls/netapi32/tests/access.c +++ b/dlls/netapi32/tests/access.c @@ -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; }