https://bugs.winehq.org/show_bug.cgi?id=55898
Bug ID: 55898 Summary: WinSCP crashes with wine-8.20 Product: Wine Version: 8.20 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: uxtheme Assignee: wine-bugs@winehq.org Reporter: bernhardu@mailbox.org Distribution: ---
WinSCP crashes with wine-8.20.
Tested with this package: https://sourceforge.net/projects/winscp/files/WinSCP/6.0.1%20beta/WinSCP-6.0...
A git bisect shows following: 29d5ce6b7a40635e2c4904ece9b8381a8132f248 is the first broken commit commit 29d5ce6b7a40635e2c4904ece9b8381a8132f248 Author: Louis Lenders xerox.xerox2000x@gmail.com Date: Tue Oct 31 07:59:03 2023 +0100 uxtheme: Add stub for AllowDarkModeForWindow.
Reverting this commit on top of wine-8.20 makes the crash go away, so looks like kind of a regression.
Running with +relay shows following: 0114:0118:Call KERNEL32.GetProcAddress(79240000,00000085) ret=00687165 0114:0118:Ret KERNEL32.GetProcAddress() retval=79241dc0 ret=00687165 0114:0118:Call KERNEL32.GetProcAddress(79240000,00000068) ret=00687165 0114:0118:Ret KERNEL32.GetProcAddress() retval=79241ce0 ret=00687165 0114:0118:Call KERNEL32.GetProcAddress(79240000,00000087) ret=00687165 0114:0118:Ret KERNEL32.GetProcAddress() retval=79241de0 ret=00687165 0114:0118:Call uxtheme.135(00000001) ret=00866406 0114:0118:fixme:uxtheme:SetPreferredAppMode 1: stub 0114:0118:Ret uxtheme.135() retval=00000000 ret=00866406 0114:0118:Call uxtheme.IsThemePartDefined(0000001e,00401876,0140255d) ret=0086640c 0114:0118:Ret uxtheme.IsThemePartDefined() retval=00000000 ret=0086640c 0114:0118:Call ntdll.NtCreateEvent(01cff8f4,001f0003,01cff8f8,00000000,00000000) ret=7b6d42d5 0114:0118:Ret ntdll.NtCreateEvent() retval=00000000 ret=7b6d42d5 wine: Unhandled page fault on execute access to 7FFD1000 at address 7FFD1000 (thread 0118), starting debugger...
Which seems to translate to this WinSCP sources: https://github.com/winscp/winscp/blob/7e61bc1e1fad5267cb4c476994ad460ffab17a...