http://bugs.winehq.org/show_bug.cgi?id=46256
--- Comment #1 from Janne janne.kekkonen@gmail.com --- Created attachment 79057 --> http://bugs.winehq.org/attachment.cgi?id=79057 test application source
Created very simple test application for EndUpdateResourceW. Most likely it will not cover all possible invalid handle possibilities.
Compiled application with following parameters: x86_64-w64-mingw32-gcc -Wall -g3 endupdate.c -static -lkernel32 -o endupdate_64.exe
Wine was patched with patches on bug-46255.
Result on Windows 11: C:\temp>ver
Microsoft Windows [Version 10.0.26100.4652]
C:\temp>endupdate_64.exe Ret val:0 LastError:87 Ret val:1 LastError:0
C:\temp>
Result on Wine:
WINEPREFIX=~/wine64 WINEARCH=win64 ~/wine64/wine --version
wine-10.12-91-ge44737278a4
WINEPREFIX=~/wine64 WINEARCH=win64 ~/wine64/wine cmd.exe
Microsoft Windows 10.0.19045
C:\temp>endupdate_64.exe Ret val:0 LastError:6 Ret val:0 LastError:6
C:\temp>
Test application source attached.