userenv: Fix a copy-paste error.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7f469b689a
commit
c31049b885
|
@ -281,7 +281,7 @@ BOOL WINAPI CreateEnvironmentBlock( LPVOID* lpEnvironment,
|
|||
|
||||
if (!GetEnvironmentVariableW(SystemDriveW, buf, UNICODE_STRING_MAX_CHARS))
|
||||
{
|
||||
if (!get_reg_value(env, hkey, SystemRootW, buf, UNICODE_STRING_MAX_CHARS))
|
||||
if (!get_reg_value(env, hkey, SystemDriveW, buf, UNICODE_STRING_MAX_CHARS))
|
||||
{
|
||||
buf[0] = 0;
|
||||
WARN("SystemDrive variable not set\n");
|
||||
|
|
Loading…
Reference in New Issue