Commit 7f359ea9 authored by Ivan Kalvachev's avatar Ivan Kalvachev Committed by Alexandre Julliard

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: 's avatarIvan Kalvachev <ikalvachev@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 269dbdcf
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment