From cf63513af39f6835f0cec9b229593f87f5d6d62c Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Fri, 4 Feb 2022 09:57:36 +0100 Subject: [PATCH] regsvr32: Enable compilation with long types. Signed-off-by: Eric Pouech Signed-off-by: Alexandre Julliard --- programs/regsvr32/Makefile.in | 1 - programs/regsvr32/regsvr32.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/programs/regsvr32/Makefile.in b/programs/regsvr32/Makefile.in index ed8374a2cb6..38779634408 100644 --- a/programs/regsvr32/Makefile.in +++ b/programs/regsvr32/Makefile.in @@ -1,4 +1,3 @@ -EXTRADEFS = -DWINE_NO_LONG_TYPES MODULE = regsvr32.exe IMPORTS = ole32 user32 kernelbase diff --git a/programs/regsvr32/regsvr32.c b/programs/regsvr32/regsvr32.c index c56479015d8..0efa6bcd839 100644 --- a/programs/regsvr32/regsvr32.c +++ b/programs/regsvr32/regsvr32.c @@ -47,7 +47,7 @@ static void WINAPIV output_write(UINT id, ...) if (!LoadStringW(GetModuleHandleW(NULL), id, fmt, ARRAY_SIZE(fmt))) { - WINE_FIXME("LoadString failed with %d\n", GetLastError()); + WINE_FIXME("LoadString failed with %ld\n", GetLastError()); return; } @@ -57,7 +57,7 @@ static void WINAPIV output_write(UINT id, ...) va_end(va_args); if (len == 0 && GetLastError() != ERROR_NO_WORK_DONE) { - WINE_FIXME("Could not format string: le=%u, fmt=%s\n", GetLastError(), wine_dbgstr_w(fmt)); + WINE_FIXME("Could not format string: le=%lu, fmt=%s\n", GetLastError(), wine_dbgstr_w(fmt)); return; } @@ -153,7 +153,7 @@ static void reexec_self( WORD machine ) } else { - WINE_TRACE("failed to restart, err=%d\n", GetLastError()); + WINE_TRACE("failed to restart, err=%ld\n", GetLastError()); } Wow64RevertWow64FsRedirection(cookie); HeapFree(GetProcessHeap(), 0, cmdline);