Alexandre Julliard : winecrt0: Add a fallback implementation of __wine_dbg_output().
Alexandre Julliard
julliard at winehq.org
Wed Apr 3 15:26:18 CDT 2019
Module: wine
Branch: master
Commit: 0ad86465ae87d2dc81da2ecd69a7775b6cf56767
URL: https://source.winehq.org/git/wine.git/?a=commit;h=0ad86465ae87d2dc81da2ecd69a7775b6cf56767
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Apr 3 19:24:52 2019 +0200
winecrt0: Add a fallback implementation of __wine_dbg_output().
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winecrt0/debug.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/dlls/winecrt0/debug.c b/dlls/winecrt0/debug.c
index 1eb5a46..4ae086c 100644
--- a/dlls/winecrt0/debug.c
+++ b/dlls/winecrt0/debug.c
@@ -23,11 +23,13 @@
#include "config.h"
#include "wine/port.h"
+#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
static const char * (__cdecl *p__wine_dbg_strdup)( const char *str );
+static int (__cdecl *p__wine_dbg_output)( const char *str );
static void load_func( void **func, const char *name, void *def )
{
@@ -53,10 +55,21 @@ static const char * __cdecl fallback__wine_dbg_strdup( const char *str )
return ret;
}
+static int __cdecl fallback__wine_dbg_output( const char *str )
+{
+ return fwrite( str, 1, strlen(str), stderr );
+}
+
const char * __cdecl __wine_dbg_strdup( const char *str )
{
LOAD_FUNC( __wine_dbg_strdup );
return p__wine_dbg_strdup( str );
}
+int __cdecl __wine_dbg_output( const char *str )
+{
+ LOAD_FUNC( __wine_dbg_output );
+ return p__wine_dbg_output( str );
+}
+
#endif /* _WIN32 */
More information about the wine-cvs
mailing list