Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
winetricks
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
winetricks
Commits
213c8998
Commit
213c8998
authored
Dec 22, 2025
by
Nurlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid corruption of W_PROGRAMS_WIN and W_PROGRAMS_X86_WIN when running from…
Avoid corruption of W_PROGRAMS_WIN and W_PROGRAMS_X86_WIN when running from syswo64 (eterbug #18331)
parent
d7254198
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
0001-Avoid-corruption-of-W_PROGRAMS_WIN-and-W_PROGRAMS_X8.patch
...void-corruption-of-W_PROGRAMS_WIN-and-W_PROGRAMS_X8.patch
+32
-0
No files found.
patches/0001-Avoid-corruption-of-W_PROGRAMS_WIN-and-W_PROGRAMS_X8.patch
0 → 100644
View file @
213c8998
From bb795de7455f8f4c6b5e6ae12a45aa5aa481417b Mon Sep 17 00:00:00 2001
From: Nurlan Usenov <suren@etersoft.ru>
Date: Mon, 22 Dec 2025 13:00:54 +0300
Subject: [PATCH] Avoid corruption of W_PROGRAMS_WIN and W_PROGRAMS_X86_WIN
when running from syswo64
---
src/winetricks | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/winetricks b/src/winetricks
index 9a66f56..66abb12 100755
--- a/src/winetricks
+++ b/src/winetricks
@@ -1078,9 +1078,14 @@ w_pathconv()
}
# Expand an environment variable and print it to stdout
+# Move to $WINEPREFIX to avoid corruption of W_PROGRAMS_WIN and W_PROGRAMS_X86_WIN when running from syswo64
w_expand_env()
{
+ _W_dl_olddir=$(pwd)
+ w_try_cd "${WINEPREFIX}"
winetricks_early_wine_arch cmd.exe /c "chcp 65001 > nul & echo %$1%"
+ w_try_cd "${_W_dl_olddir}"
+ unset _W_dl_olddir
}
# Determine what architecture a binary file is built for, silently continue in case of failure.
--
2.33.8
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment