Module: wine Branch: master Commit: e85f5aa6de9779aa3e61b958ee569da30e8adc37 URL: https://gitlab.winehq.org/wine/wine/-/commit/e85f5aa6de9779aa3e61b958ee569da...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Nov 17 10:23:26 2022 +0100
winecrt0: Build without -DWINE_NO_LONG_TYPES.
---
dlls/winecrt0/Makefile.in | 1 - dlls/winecrt0/debug.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/winecrt0/Makefile.in b/dlls/winecrt0/Makefile.in index 6915e69eb4b..17da4da29c6 100644 --- a/dlls/winecrt0/Makefile.in +++ b/dlls/winecrt0/Makefile.in @@ -1,4 +1,3 @@ -EXTRADEFS = -DWINE_NO_LONG_TYPES STATICLIB = libwinecrt0.a
C_SRCS = \ diff --git a/dlls/winecrt0/debug.c b/dlls/winecrt0/debug.c index 918fb67b140..2ac4505fb85 100644 --- a/dlls/winecrt0/debug.c +++ b/dlls/winecrt0/debug.c @@ -191,11 +191,11 @@ static int __cdecl fallback__wine_dbg_header( enum __wine_debug_class cls,
if (TRACE_ON(timestamp)) { - ULONG ticks = GetTickCount(); + UINT ticks = GetTickCount(); pos += sprintf( pos, "%3u.%03u:", ticks / 1000, ticks % 1000 ); } - if (TRACE_ON(pid)) pos += sprintf( pos, "%04x:", GetCurrentProcessId() ); - pos += sprintf( pos, "%04x:", GetCurrentThreadId() ); + if (TRACE_ON(pid)) pos += sprintf( pos, "%04x:", (UINT)GetCurrentProcessId() ); + pos += sprintf( pos, "%04x:", (UINT)GetCurrentThreadId() ); if (function && cls < ARRAY_SIZE( debug_classes )) snprintf( pos, sizeof(buffer) - (pos - buffer), "%s:%s:%s ", debug_classes[cls], channel->name, function );