Commit c425045a authored by Alexandre Julliard's avatar Alexandre Julliard

winevdm: Don't use sizeof in traces to avoid printf format warnings.

parent 46a5f913
...@@ -119,9 +119,7 @@ static BOOL read_pif_file( HANDLE hFile, char *progname, char *title, ...@@ -119,9 +119,7 @@ static BOOL read_pif_file( HANDLE hFile, char *progname, char *title,
pifhead_t pifheader; pifhead_t pifheader;
if( !GetFileSizeEx( hFile, &filesize) || if( !GetFileSizeEx( hFile, &filesize) ||
filesize.QuadPart < (sizeof(pifhead_t) + sizeof(recordhead_t))) { filesize.QuadPart < (sizeof(pifhead_t) + sizeof(recordhead_t))) {
WINE_ERR("Invalid pif file: size error %d must be >= %d\n", WINE_ERR("Invalid pif file: size error %d\n", (int)filesize.QuadPart);
(int)filesize.QuadPart,
(sizeof(pifhead_t) + sizeof(recordhead_t)));
return FALSE; return FALSE;
} }
SetFilePointer( hFile, 0, NULL, FILE_BEGIN); SetFilePointer( hFile, 0, NULL, FILE_BEGIN);
......
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