kernel32: Do not inherit QT_* environment variables to Windows environment.
Sebastian Lackner
sebastian at fds-team.de
Mon Feb 15 21:48:10 CST 2016
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
I'm not completely happy with this patch, but inheritance of QT_* environment
variables from the host system causes lot of issues for multiple QT-based Windows
applications. I propose that we should treat them like other special environment
variables. There are probably too many to add a full list to the Wine source.
dlls/kernel32/process.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 1d306a7..86333be 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -134,7 +134,8 @@ static inline BOOL is_special_env_var( const char *var )
!strncmp( var, "PWD=", sizeof("PWD=")-1 ) ||
!strncmp( var, "HOME=", sizeof("HOME=")-1 ) ||
!strncmp( var, "TEMP=", sizeof("TEMP=")-1 ) ||
- !strncmp( var, "TMP=", sizeof("TMP=")-1 ));
+ !strncmp( var, "TMP=", sizeof("TMP=")-1 ) ||
+ !strncmp( var, "QT_", sizeof("QT_")-1 ));
}
--
2.7.1
More information about the wine-patches
mailing list