Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0ad86465
Commit
0ad86465
authored
Apr 03, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecrt0: Add a fallback implementation of __wine_dbg_output().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d6060b7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
debug.c
dlls/winecrt0/debug.c
+13
-0
No files found.
dlls/winecrt0/debug.c
View file @
0ad86465
...
...
@@ -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 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment