https://bugs.winehq.org/show_bug.cgi?id=54957
David Kahurani k.kahurani@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |k.kahurani@gmail.com
--- Comment #1 from David Kahurani k.kahurani@gmail.com --- I see this from ShareX code...
[DllImport("dwmapi.dll", PreserveSig = false)] public static extern bool DwmIsCompositionEnabled();
I'm curious whether 'PreserveSig = false' allows someone to totally cobber a function signature including the arguments because that looks, by all means, wrong.
This is probably the cause of the problem. The problem probably goes unnoticed on Windows because it triggers an exception and it gets silently handled (now that you have 'PreserveSig = false')