From 277e9c4ca81ec2315214126c0ac6949e20c5443e Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 8 Mar 2012 10:11:02 +0100 Subject: WaE: format '%x' expects argument of type 'unsigned int' --- vcl/win/source/window/salframe.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index 1b331180eced..5d64d15210f6 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -6144,14 +6144,14 @@ sal_Bool ImplWriteLastError( DWORD lastError, const char *szApiCall ) if( first ) { first = 0; - fprintf( fp, "Process ID: %d (0x%x)\n", GetCurrentProcessId(), GetCurrentProcessId() ); + fprintf( fp, "Process ID: %ld (0x%lx)\n", GetCurrentProcessId(), GetCurrentProcessId() ); } time_t aclock; time( &aclock ); // Get time in seconds struct tm *newtime = localtime( &aclock ); // Convert time to struct tm form fprintf( fp, asctime( newtime ) ); // print time stamp - fprintf( fp, "%s returned %u (0x%x)\n", szApiCall, lastError, lastError ); + fprintf( fp, "%s returned %lu (0x%lx)\n", szApiCall, lastError, lastError ); bSuccess = TRUE; // may be FormatMessage fails but we wrote at least the error code LPVOID lpMsgBuf; -- cgit