Alexandre Julliard : winecrt0: Replace SystemRoot when registering dlls.
Alexandre Julliard
julliard at winehq.org
Fri Apr 9 14:53:20 CDT 2021
Module: wine
Branch: master
Commit: 14aaa0a373cad5773a6aac939bc62cf229d94838
URL: https://source.winehq.org/git/wine.git/?a=commit;h=14aaa0a373cad5773a6aac939bc62cf229d94838
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Apr 9 20:27:06 2021 +0200
winecrt0: Replace SystemRoot when registering dlls.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winecrt0/register.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/winecrt0/register.c b/dlls/winecrt0/register.c
index cb5e7a50f76..2fb0b5f5420 100644
--- a/dlls/winecrt0/register.c
+++ b/dlls/winecrt0/register.c
@@ -32,6 +32,7 @@
static const WCHAR atl100W[] = {'a','t','l','1','0','0','.','d','l','l',0};
static const WCHAR regtypeW[] = {'W','I','N','E','_','R','E','G','I','S','T','R','Y',0};
static const WCHAR moduleW[] = {'M','O','D','U','L','E',0};
+static const WCHAR systemrootW[] = {'S','y','s','t','e','m','R','o','o','t',0};
struct reg_info
{
@@ -62,6 +63,8 @@ static IRegistrar *create_registrar( HMODULE inst, struct reg_info *info )
GetModuleFileNameW( inst, str, MAX_PATH );
IRegistrar_AddReplacement( info->registrar, moduleW, str );
+ GetEnvironmentVariableW( systemrootW, str, MAX_PATH );
+ IRegistrar_AddReplacement( info->registrar, systemrootW, str );
}
return info->registrar;
}
More information about the wine-cvs
mailing list