[Bug 46914] CompressonatorGUI 3.1 installer crashes in Win10 mode (Advanced Installer Module bug, incorrect usage of kernel32.Wow64RevertWow64FsRedirection)

WineHQ Bugzilla wine-bugs at winehq.org
Fri Nov 1 02:45:23 CDT 2019


https://bugs.winehq.org/show_bug.cgi?id=46914

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|kernel32                    |ntdll
      Fixed by SHA1|                            |aa51aee1a92ddbdd39875af81b0
                   |                            |02654f8ad4fc7
         Resolution|---                         |FIXED

--- Comment #2 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

this is fixed by commit
https://source.winehq.org/git/wine.git/commitdiff/aa51aee1a92ddbdd39875af81b002654f8ad4fc7
("ntdll: Enable WoW64 filesystem redirection when loading libraries.")

Thanks Brendan

Prerequisite:

* 64-bit WINEPREFIX WinVer set to 'Windows 10'
* Win10+ specific 'Current{Major,Minor}VersionNumber' registry keys set: 

--- snip ---
$ wine64 reg add "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion" /v
CurrentMajorVersionNumber /t REG_DWORD /d 0xa /f 

$ wine64 reg add "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion" /v
CurrentMinorVersionNumber /t REG_DWORD /d 0 /f  
--- snip ---

--- snip ---
$ WINEDEBUG=+seh,+relay,+msi,+module,+loaddll,+process wine
./CompressonatorGUI_x64_3.1.4064.exe >>log.txt 2>&1
...
# installer bug
002b:Call KERNEL32.Wow64DisableWow64FsRedirection(0032edac) ret=0048974e
002b:Call ntdll.RtlWow64EnableFsRedirectionEx(00000001,0032edac) ret=7125522d
002b:Ret  ntdll.RtlWow64EnableFsRedirectionEx() retval=00000000 ret=7125522d
002b:Ret  KERNEL32.Wow64DisableWow64FsRedirection() retval=00000001
ret=0048974e
...
002b:Call KERNEL32.LoadLibraryExW(0032f266
L"C:\\windows\\system32\\explorerframe.dll",00000000,00000008) ret=652106fc
...
002b:Call ntdll.LdrGetDllPath(0032f266
L"C:\\windows\\system32\\explorerframe.dll",00000008,0032f104,0032f108)
ret=71259070
002b:Ret  ntdll.LdrGetDllPath() retval=00000000 ret=71259070
002b:Call ntdll.LdrLoadDll(0018a160
L"C:\\windows\\system32;C:\\windows\\system32;C:\\windows\\system;C:\\windows;.;C:\\windows\\system32;C:\\windows;C:\\windows\\system32\\wbem",00000008,0032f158,0032f100)
ret=71259158
002b:trace:module:load_dll looking for
L"C:\\windows\\system32\\explorerframe.dll" in
L"C:\\windows\\system32;C:\\windows\\system32;C:\\windows\\system;C:\\windows;.;C:\\windows\\system32;C:\\windows;C:\\windows\\system32\\wbem"
002b:trace:module:map_image mapped PE file at 0x6b5c0000-0x6b624000 
...
002b:trace:loaddll:load_native_dll Loaded
L"C:\\windows\\system32\\explorerframe.dll" at 0x6b5c0000: PE builtin
002b:trace:module:load_dll Loaded module
L"\\??\\C:\\windows\\system32\\explorerframe.dll" at 0x6b5c0000
002b:trace:module:process_attach (L"explorerframe.dll",(nil)) - START
002b:Call PE DLL (proc=0x6b5c61b0,module=0x6b5c0000
L"explorerframe.dll",reason=PROCESS_ATTACH,res=(nil)) 
...
002b:Ret  PE DLL (proc=0x6b5c61b0,module=0x6b5c0000
L"explorerframe.dll",reason=PROCESS_ATTACH,res=(nil)) retval=1
002b:trace:module:process_attach (L"explorerframe.dll",(nil)) - END
002b:Ret  ntdll.LdrLoadDll() retval=00000000 ret=71259158
...
002b:Ret  KERNEL32.LoadLibraryExW() retval=6b5c0000 ret=652106fc 
...
002b:Call KERNEL32.LoadLibraryA(005010f0 "dwmapi.dll") ret=004c0c0c
...
002b:Call ntdll.LdrGetDllPath(7ffd8c00
L"dwmapi.dll",00000000,0032e7b4,0032e7b8) ret=71259070
002b:Ret  ntdll.LdrGetDllPath() retval=00000000 ret=71259070
002b:Call ntdll.LdrLoadDll(001dc420
L"Z:\\home\\focht\\Downloads;C:\\windows\\system32;C:\\windows\\system;C:\\windows;.;C:\\windows\\system32;C:\\windows;C:\\windows\\system32\\wbem",00000000,0032e808,0032e7b0)
ret=71259158
002b:trace:module:load_dll looking for L"dwmapi.dll" in
L"Z:\\home\\focht\\Downloads;C:\\windows\\system32;C:\\windows\\system;C:\\windows;.;C:\\windows\\system32;C:\\windows;C:\\windows\\system32\\wbem"
002b:trace:module:map_image mapped PE file at 0x63ac0000-0x63ada000 
...
002b:trace:loaddll:load_native_dll Loaded L"C:\\windows\\system32\\dwmapi.dll"
at 0x63ac0000: PE builtin
002b:trace:module:load_dll Loaded module
L"\\??\\C:\\windows\\system32\\dwmapi.dll" at 0x63ac0000
002b:trace:module:process_attach (L"dwmapi.dll",(nil)) - START
002b:Call PE DLL (proc=0x63ac2400,module=0x63ac0000
L"dwmapi.dll",reason=PROCESS_ATTACH,res=(nil))
...
002b:Ret  PE DLL (proc=0x63ac2400,module=0x63ac0000
L"dwmapi.dll",reason=PROCESS_ATTACH,res=(nil)) retval=1
002b:trace:module:process_attach (L"dwmapi.dll",(nil)) - END
002b:Ret  ntdll.LdrLoadDll() retval=00000000 ret=71259158
...
002b:Ret  KERNEL32.LoadLibraryA() retval=63ac0000 ret=004c0c0c
...
002b:Call KERNEL32.GetProcAddress(63ac0000,00536f9a "DwmSetWindowAttribute")
ret=004c0ce3
002b:Ret  KERNEL32.GetProcAddress() retval=63ac1a28 ret=004c0ce3
002b:Call dwmapi.DwmSetWindowAttribute(00050086,00000002,0032e8f8,00000004)
ret=004e09aa
...
--- snip ---

$ wine --version
wine-4.18-275-gccec532879

Regards

-- 
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.



More information about the wine-bugs mailing list