Module: wine Branch: stable Commit: d57db8ae5132d02f85c97b4a7bf8ca1c2de2d0a2 URL: https://source.winehq.org/git/wine.git/?a=commit;h=d57db8ae5132d02f85c97b4a7...
Author: Ivan Kalvachev ikalvachev@gmail.com Date: Sat Apr 7 14:02:16 2018 +0300
kernel32: Add DECL_HOTPATCH to OutputDebugString functions.
Some Microsoft debuggers hotpatch this function to get the debug output directly from the code they are tracing. Having the wrong function prologue leads to a crash.
Signed-off-by: Ivan Kalvachev ikalvachev@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit 7f359ea93e89de099ac6be15ca07a6ee16efdce5) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/kernel32/debugger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/debugger.c b/dlls/kernel32/debugger.c index a277f93..8e5af30 100644 --- a/dlls/kernel32/debugger.c +++ b/dlls/kernel32/debugger.c @@ -253,7 +253,7 @@ static LONG WINAPI debug_exception_handler( EXCEPTION_POINTERS *eptr ) * * Nothing. */ -void WINAPI OutputDebugStringA( LPCSTR str ) +void WINAPI DECLSPEC_HOTPATCH OutputDebugStringA( LPCSTR str ) { static HANDLE DBWinMutex = NULL; static BOOL mutex_inited = FALSE; @@ -364,7 +364,7 @@ void WINAPI OutputDebugStringA( LPCSTR str ) * * Nothing. */ -void WINAPI OutputDebugStringW( LPCWSTR str ) +void WINAPI DECLSPEC_HOTPATCH OutputDebugStringW( LPCWSTR str ) { UNICODE_STRING strW; STRING strA;