wineconsole: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-02-07 08:40:43 +01:00 committed by Alexandre Julliard
parent 27aacaa73e
commit c4b0c89b78
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = wineconsole.exe MODULE = wineconsole.exe
IMPORTS = advapi32 IMPORTS = advapi32
DELAYIMPORTS = comctl32 user32 gdi32 DELAYIMPORTS = comctl32 user32 gdi32

View File

@ -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 */ FreeConsole(); /* make sure we're not connected to inherited console */
if (!AllocConsole()) if (!AllocConsole())
{ {
ERR( "failed to allocate console: %u\n", GetLastError() ); ERR( "failed to allocate console: %lu\n", GetLastError() );
return 1; return 1;
} }
@ -63,7 +63,7 @@ int WINAPI wWinMain( HINSTANCE inst, HINSTANCE prev, WCHAR *cmdline, INT show )
INPUT_RECORD ir; INPUT_RECORD ir;
DWORD len; DWORD len;
exit_code = GetLastError(); 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) ); LoadStringW( GetModuleHandleW( NULL ), IDS_CMD_LAUNCH_FAILED, format, ARRAY_SIZE(format) );
len = wcslen( format ) + wcslen( cmd ); len = wcslen( format ) + wcslen( cmd );
if ((buf = malloc( len * sizeof(WCHAR) ))) if ((buf = malloc( len * sizeof(WCHAR) )))