Commit 34c7a72d authored by Qian Hong's avatar Qian Hong Committed by Alexandre Julliard

kernel32: Fix GetComputerName buffer overflow.

parent ddf57d26
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment