Eric Pouech : chcp.com: Enable compilation with long types.
Alexandre Julliard
julliard at winehq.org
Fri Feb 4 16:08:35 CST 2022
Module: wine
Branch: master
Commit: abbde22d98507976fecbe1146f8c1b38ba3977ed
URL: https://source.winehq.org/git/wine.git/?a=commit;h=abbde22d98507976fecbe1146f8c1b38ba3977ed
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Fri Feb 4 09:56:01 2022 +0100
chcp.com: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/chcp.com/Makefile.in | 1 -
programs/chcp.com/main.c | 4 ++--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/programs/chcp.com/Makefile.in b/programs/chcp.com/Makefile.in
index 7a55d3cf15f..c7037abb10f 100644
--- a/programs/chcp.com/Makefile.in
+++ b/programs/chcp.com/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = chcp.com
IMPORTS = kernelbase
diff --git a/programs/chcp.com/main.c b/programs/chcp.com/main.c
index 31ddba4c137..6c5864d0e19 100644
--- a/programs/chcp.com/main.c
+++ b/programs/chcp.com/main.c
@@ -56,7 +56,7 @@ static void output_formatstring(const WCHAR *fmt, va_list va_args)
fmt, 0, 0, (WCHAR *)&str, 0, &va_args);
if (!len && 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;
}
output_writeconsole(str, len);
@@ -71,7 +71,7 @@ static void WINAPIV output_message(unsigned int id, ...)
if (!(len = LoadStringW(GetModuleHandleW(NULL), id, (WCHAR *)&fmt, 0)))
{
- WINE_FIXME("LoadString failed with %d\n", GetLastError());
+ WINE_FIXME("LoadString failed with %ld\n", GetLastError());
return;
}
More information about the wine-cvs
mailing list