diff options
Diffstat (limited to 'src/os/os_wine.c')
| -rw-r--r-- | src/os/os_wine.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/os/os_wine.c b/src/os/os_wine.c index e7f34a99..1e61772a 100644 --- a/src/os/os_wine.c +++ b/src/os/os_wine.c @@ -1,8 +1,11 @@ +#include <stdio.h> +#include <string.h> #include <windows.h> #include <ntstatus.h> #include <winternl.h> #include "os.h" +#include "wine/debug.h" #define HandleToULong(h) ((ULONG)(ULONG_PTR)(h)) @@ -54,11 +57,20 @@ void EmuX86Syscall(void* emu) // FIXME } +const char* GetBridgeName(void* p) +{ + return NULL; +} + const char* GetNativeName(void* p) { return NULL; } +void* GetNativeFnc(uintptr_t fnc) +{ + return NULL; +} void PersonalityAddrLimit32Bit(void) { @@ -193,3 +205,16 @@ int VolatileRangesContains(uintptr_t addr) { return 0; } + +void PrintfFtrace(int prefix, const char* fmt, ...) +{ + static char buf[1024] = { 0 }; + + char* p = buf; + strcpy(p, prefix > 1 ? "[\033[31mBOX64\033[0m] " : "[BOX64] "); + va_list args; + va_start(args, fmt); + vsprintf(p + strlen(p), fmt, args); + va_end(args); + __wine_dbg_output(p); +} |