From e704f0372ed396ddefe6b8c65f71da6d201857b9 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Mon, 7 Feb 2022 08:39:55 +0100 Subject: [PATCH] start: Enable compilation with long types. Signed-off-by: Eric Pouech Signed-off-by: Alexandre Julliard --- programs/start/Makefile.in | 1 - programs/start/start.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/programs/start/Makefile.in b/programs/start/Makefile.in index 7dfdd55b794..04bc38808bf 100644 --- a/programs/start/Makefile.in +++ b/programs/start/Makefile.in @@ -1,4 +1,3 @@ -EXTRADEFS = -DWINE_NO_LONG_TYPES MODULE = start.exe IMPORTS = shell32 user32 diff --git a/programs/start/start.c b/programs/start/start.c index b5bf8187603..998c439423e 100644 --- a/programs/start/start.c +++ b/programs/start/start.c @@ -98,7 +98,7 @@ static void fatal_string_error(int which, DWORD error_code, const WCHAR *filenam WCHAR msg[2048]; if (!LoadStringW(GetModuleHandleW(NULL), which, msg, ARRAY_SIZE(msg))) - WINE_ERR("LoadString failed, error %d\n", GetLastError()); + WINE_ERR("LoadString failed, error %ld\n", GetLastError()); fatal_error(msg, error_code, filename); } @@ -108,7 +108,7 @@ static void fatal_string(int which) WCHAR msg[2048]; if (!LoadStringW(GetModuleHandleW(NULL), which, msg, ARRAY_SIZE(msg))) - WINE_ERR("LoadString failed, error %d\n", GetLastError()); + WINE_ERR("LoadString failed, error %ld\n", GetLastError()); output(msg); ExitProcess(1);