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:
parent
269dbdcfbf
commit
7f359ea93e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue