kernel32: Fix GetComputerName buffer overflow.

This commit is contained in:
Qian Hong 2015-07-22 10:28:06 +08:00 committed by Alexandre Julliard
parent ddf57d26af
commit 34c7a72d14

View File

@ -517,7 +517,7 @@ static void set_additional_environment(void)
OBJECT_ATTRIBUTES attr;
UNICODE_STRING nameW;
WCHAR *profile_dir = NULL, *all_users_dir = NULL;
WCHAR buf[MAX_COMPUTERNAME_LENGTH];
WCHAR buf[MAX_COMPUTERNAME_LENGTH+1];
HANDLE hkey;
DWORD len;