https://bugs.winehq.org/show_bug.cgi?id=54957 David Kahurani <k.kahurani(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |k.kahurani(a)gmail.com --- Comment #1 from David Kahurani <k.kahurani(a)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') -- 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.