https://bugs.winehq.org/show_bug.cgi?id=54957
Bug ID: 54957 Summary: ShareX page fault Product: Wine Version: 8.8 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: brendanlincoln22@gmail.com Distribution: ---
Created attachment 74483 --> https://bugs.winehq.org/attachment.cgi?id=74483 backtrace
When trying to capture the screen using sharex it crashes.
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')