[Bug 57892] New: x86(32bit) exe's wrong registry redirect
https://bugs.winehq.org/show_bug.cgi?id=57892 Bug ID: 57892 Summary: x86(32bit) exe's wrong registry redirect Product: Wine Version: 10.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: advapi32 Assignee: wine-bugs(a)winehq.org Reporter: axis6404(a)proton.me Distribution: --- When x86(32bit) exe is executed from 64bitOS, the registry is redirected to wow6432node. Some cases are redirecting when they should not. I have created a simple 10 line program as a test case, attached in 7z with the exe. Description of the exe: Create HKEY_CURRENT_USER\software\wineTestRedirect. Windows 8.1 (x64): Create HKEY_CURRENT_USER\software\wineTestRedirect. wine (x64 debian): Create HKEY_CURRENT_USER\software\Wow6432Node\wineTestRedirect How to fix: Do not redirect to HKEY_CURRENT_USER\Software\* (and other special locations). A detailed list is available on MSDN. https://learn.microsoft.com/ja-jp/windows/win32/winprog64/shared-registry-ke... Effects: Dead or Alive Xtreme Vacation(doaxvv) DMM Game Player version: Error code: アップデートをキャンセルしました。.インストール情報が正しくありません。アンインストールしてから再インストールをしてください。(601:0) https://github.com/ValveSoftware/Proton/issues/2773#issuecomment-1182496990 https://steamcommunity.com/app/958260/discussions/0/1846946102863590168/?ctp... And a bunch of other 32-bit exe's. Translated with DeepL.com (free version) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57892 --- Comment #1 from axis6404(a)proton.me --- Created attachment 78121 --> https://bugs.winehq.org/attachment.cgi?id=78121 simple test exe+src -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57892 --- Comment #2 from axis6404(a)proton.me --- This is a critical bug. All 32-bit apps lose their registry settings only once. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57892 Maotong Zhang <zmtong1988(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zmtong1988(a)gmail.com --- Comment #3 from Maotong Zhang <zmtong1988(a)gmail.com> --- (In reply to axis6404 from comment #2)
This is a critical bug. All 32-bit apps lose their registry settings only once.
wine version ? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57892 --- Comment #4 from Maotong Zhang <zmtong1988(a)gmail.com> --- I test this wineWOW6432node.exe on wine-10.3 , WINEARCH=win64, it doesn't generate a registration entry for 'HKEY_CURRENT_USER\software\Wow6432Node\wineTestRedirect' -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57892 --- Comment #5 from axis6404(a)proton.me --- The bug is not reproduced by WINEPREFIX; it is always reproduced by wine-devel10.3 in the .winedmm environment created on 2025/02/19. I will check how to reproduce it now. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57892 --- Comment #6 from axis6404(a)proton.me --- Created attachment 78205 --> https://bugs.winehq.org/attachment.cgi?id=78205 how to reproduce I figured out how to reproduce, but I can't write here with a server error Attaching txt -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57892 --- Comment #7 from axis6404(a)proton.me --- (In reply to Maotong Zhang from comment #3)
(In reply to axis6404 from comment #2)
This is a critical bug. All 32-bit apps lose their registry settings only once.
wine version ?
My WINEPREFIX is a mix of versions with and without Wow6432Node. When this bug is fixed, wine users will have to port the data manually with regedit or give up setting below Wow6432Node. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57892 --- Comment #8 from Maotong Zhang <zmtong1988(a)gmail.com> --- (In reply to axis6404 from comment #7)
(In reply to Maotong Zhang from comment #3)
(In reply to axis6404 from comment #2)
This is a critical bug. All 32-bit apps lose their registry settings only once.
wine version ?
My WINEPREFIX is a mix of versions with and without Wow6432Node. When this bug is fixed, wine users will have to port the data manually with regedit or give up setting below Wow6432Node.
Ok, Problem reproduce! There are projects in Wow6432Node, will not be created during the creation process Me analyze it -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57892 --- Comment #9 from Maotong Zhang <zmtong1988(a)gmail.com> --- Created attachment 78211 --> https://bugs.winehq.org/attachment.cgi?id=78211 test-Wow6432Node Can you test this patch? The patch has disabled Wow6432Node mapping and see if it will affect your program. In this way, a 64 bit system runs 32-bit applications without executing Wow6432Node mapping redirection. I always feel that this violates the Wow6432Node mapping and may require better methods to implement. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57892 --- Comment #10 from axis6404(a)proton.me --- I did some testing of HKEY_CURRENT_USER\software only. Looks like the bug is fixed to me. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57892 --- Comment #11 from axis6404(a)proton.me --- Created attachment 78222 --> https://bugs.winehq.org/attachment.cgi?id=78222 how to reproduce 2 I did additional testing of the patch. I found one problem. Specifying KEY_WOW64_32KEY or RRF_SUBKEY_WOW6432KEY in PE64 exe causes wrong redirection I attach a small test case. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla