kernel32: Fixed size to GetEnvironmentVariableW.

This commit is contained in:
Marcus Meissner 2010-12-16 23:16:24 +01:00 committed by Alexandre Julliard
parent 667aeb3ede
commit a601c75db3
1 changed files with 2 additions and 2 deletions

View File

@ -573,7 +573,7 @@ static void set_wow64_environment(void)
/* set the PROCESSOR_ARCHITECTURE variable */
if (GetEnvironmentVariableW( arch6432W, arch, sizeof(arch) ))
if (GetEnvironmentVariableW( arch6432W, arch, sizeof(arch)/sizeof(WCHAR) ))
{
if (is_win64)
{
@ -581,7 +581,7 @@ static void set_wow64_environment(void)
SetEnvironmentVariableW( arch6432W, NULL );
}
}
else if (GetEnvironmentVariableW( archW, arch, sizeof(arch) ))
else if (GetEnvironmentVariableW( archW, arch, sizeof(arch)/sizeof(WCHAR) ))
{
if (is_wow64)
{