[PATCH 04/15] programs/chcp.com: enable compilation with long types

Eric Pouech eric.pouech at gmail.com
Fri Jan 28 10:58:00 CST 2022



---
 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-devel mailing list