[PATCH 12/24] programs/wineconsole: enable compilation with long types

Eric Pouech eric.pouech at gmail.com
Mon Feb 7 01:40:43 CST 2022


Signed-off-by: Eric Pouech <eric.pouech at gmail.com>

---
 programs/wineconsole/Makefile.in   |    1 -
 programs/wineconsole/wineconsole.c |    4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/programs/wineconsole/Makefile.in b/programs/wineconsole/Makefile.in
index 882ee9a3b1d..b859ef8a27a 100644
--- a/programs/wineconsole/Makefile.in
+++ b/programs/wineconsole/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
 MODULE    = wineconsole.exe
 IMPORTS   = advapi32
 DELAYIMPORTS = comctl32 user32 gdi32
diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c
index d398e6eb1a8..1924bf791e6 100644
--- a/programs/wineconsole/wineconsole.c
+++ b/programs/wineconsole/wineconsole.c
@@ -44,7 +44,7 @@ int WINAPI wWinMain( HINSTANCE inst, HINSTANCE prev, WCHAR *cmdline, INT show )
     FreeConsole(); /* make sure we're not connected to inherited console */
     if (!AllocConsole())
     {
-        ERR( "failed to allocate console: %u\n", GetLastError() );
+        ERR( "failed to allocate console: %lu\n", GetLastError() );
         return 1;
     }
 
@@ -63,7 +63,7 @@ int WINAPI wWinMain( HINSTANCE inst, HINSTANCE prev, WCHAR *cmdline, INT show )
         INPUT_RECORD ir;
         DWORD len;
         exit_code = GetLastError();
-        WARN( "CreateProcess failed: %u\n", exit_code );
+        WARN( "CreateProcess failed: %lu\n", exit_code );
         LoadStringW( GetModuleHandleW( NULL ), IDS_CMD_LAUNCH_FAILED, format, ARRAY_SIZE(format) );
         len = wcslen( format ) + wcslen( cmd );
         if ((buf = malloc( len * sizeof(WCHAR) )))




More information about the wine-devel mailing list