Andrew Nguyen : ntdll: Use the HKCU\Volatile Environment key when generating the initial process environment .
Alexandre Julliard
julliard at winehq.org
Thu Dec 24 10:27:19 CST 2009
Module: wine
Branch: master
Commit: 542feda6b883cd289996862a868c0c610a5cf808
URL: http://source.winehq.org/git/wine.git/?a=commit;h=542feda6b883cd289996862a868c0c610a5cf808
Author: Andrew Nguyen <arethusa26 at gmail.com>
Date: Wed Dec 23 11:31:46 2009 -0600
ntdll: Use the HKCU\Volatile Environment key when generating the initial process environment.
---
dlls/kernel32/process.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 08ac255..45488aa 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -417,6 +417,7 @@ static BOOL set_registry_environment(void)
'S','e','s','s','i','o','n',' ','M','a','n','a','g','e','r','\\',
'E','n','v','i','r','o','n','m','e','n','t',0};
static const WCHAR envW[] = {'E','n','v','i','r','o','n','m','e','n','t',0};
+ static const WCHAR volatile_envW[] = {'V','o','l','a','t','i','l','e',' ','E','n','v','i','r','o','n','m','e','n','t',0};
OBJECT_ATTRIBUTES attr;
UNICODE_STRING nameW;
@@ -449,6 +450,15 @@ static BOOL set_registry_environment(void)
set_registry_variables( hkey, REG_EXPAND_SZ );
NtClose( hkey );
}
+
+ RtlInitUnicodeString( &nameW, volatile_envW );
+ if (NtOpenKey( &hkey, KEY_READ, &attr ) == STATUS_SUCCESS)
+ {
+ set_registry_variables( hkey, REG_SZ );
+ set_registry_variables( hkey, REG_EXPAND_SZ );
+ NtClose( hkey );
+ }
+
NtClose( attr.RootDirectory );
return ret;
}
More information about the wine-cvs
mailing list