From: Aida JonikienÄ— aidas957@gmail.com
Overriding the SDL_VIDEODRIVER variable (for Wayland support as an example) on the Linux side can lead to some games under Wine failing to load (so treat that variable as special). --- dlls/ntdll/unix/env.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c index ad9ab0dc220..73a11a6fd97 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -341,7 +341,9 @@ static BOOL is_special_env_var( const char *var ) STARTS_WITH( var, "TEMP=" ) || STARTS_WITH( var, "TMP=" ) || STARTS_WITH( var, "QT_" ) || - STARTS_WITH( var, "VK_" )); + STARTS_WITH( var, "VK_" ) || + STARTS_WITH( var, "SDL_AUDIO" ) || + STARTS_WITH( var, "SDL_VIDEO" )); }
/* check if an environment variable changes dynamically in every new process */