https://bugs.winehq.org/show_bug.cgi?id=42716 Bug ID: 42716 Summary: IsDebuggerPresent returning TRUE Product: Wine Version: 2.4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: kernel32 Assignee: wine-bugs(a)winehq.org Reporter: dmpeletronic(a)gmail.com Distribution: --- The function above is always returning true, depending on the machine. It seems that the struct is not initialized correctly. BOOL WINAPI IsDebuggerPresent(void) { return NtCurrentTeb()->Peb->BeingDebugged; } Please check the Peb and BeingDebugged initialization. As consequence, some applications sometimes cannot be run, such as MetaTrader5, and we get a DialogBox: “A debugger has been found running in your system. Please unload it from your memory and restart your program”. -- 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.