Marcus Meissner : kernel32: Fixed size to GetEnvironmentVariableW.
Alexandre Julliard
julliard at winehq.org
Thu Apr 7 07:36:44 CDT 2011
Module: wine
Branch: stable
Commit: 50a47265d5a7983f16d1849229c4e71f0ccde727
URL: http://source.winehq.org/git/wine.git/?a=commit;h=50a47265d5a7983f16d1849229c4e71f0ccde727
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Thu Dec 16 23:16:24 2010 +0100
kernel32: Fixed size to GetEnvironmentVariableW.
(cherry picked from commit a601c75db3340ac56dbec8fd118bdd7e79be2f7f)
---
dlls/kernel32/process.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index e5e33f2..0538aa9 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -572,7 +572,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)
{
@@ -580,7 +580,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)
{
More information about the wine-cvs
mailing list