https://bugs.winehq.org/show_bug.cgi?id=56042
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 75698 --> https://bugs.winehq.org/attachment.cgi?id=75698 patch
I think immediate failure is SetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2), it's not handled by GetAwarenessFromDpiAwarenessContext() that will return DPI_AWARENESS_INVALID. That in turn will return 0 from SetThreadDpiAwarenessContext().
This needs some tests obviously.