Commit c4b0c89b authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

wineconsole: Enable compilation with long types.

parent 27aacaa7
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = wineconsole.exe MODULE = wineconsole.exe
IMPORTS = advapi32 IMPORTS = advapi32
DELAYIMPORTS = comctl32 user32 gdi32 DELAYIMPORTS = comctl32 user32 gdi32
......
...@@ -44,7 +44,7 @@ int WINAPI wWinMain( HINSTANCE inst, HINSTANCE prev, WCHAR *cmdline, INT show ) ...@@ -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 ) ...@@ -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) )))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment