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>
This commit is contained in:
Ivan Kalvachev 2018-04-07 14:02:16 +03:00 committed by Alexandre Julliard
parent 269dbdcfbf
commit 7f359ea93e
1 changed files with 2 additions and 2 deletions

View File

@ -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;