From 16873ae059abeaae4193259a2a461df4b84a10cc Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Tue, 15 Feb 2022 07:30:47 +0100 Subject: [PATCH] msvidc32: Enable compilation with long types. Signed-off-by: Eric Pouech Signed-off-by: Alexandre Julliard --- dlls/msvidc32/Makefile.in | 1 - dlls/msvidc32/msvideo1.c | 22 +++++++++++----------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/dlls/msvidc32/Makefile.in b/dlls/msvidc32/Makefile.in index 6b57d14b734..2fc8f907541 100644 --- a/dlls/msvidc32/Makefile.in +++ b/dlls/msvidc32/Makefile.in @@ -1,4 +1,3 @@ -EXTRADEFS = -DWINE_NO_LONG_TYPES MODULE = msvidc32.dll IMPORTS = user32 diff --git a/dlls/msvidc32/msvideo1.c b/dlls/msvidc32/msvideo1.c index 7b866d04caf..327882f68f2 100644 --- a/dlls/msvidc32/msvideo1.c +++ b/dlls/msvidc32/msvideo1.c @@ -306,15 +306,15 @@ CRAM_DecompressQuery( Msvideo1Context *info, LPBITMAPINFO in, LPBITMAPINFO out ) TRACE("in->planes = %d\n", in->bmiHeader.biPlanes ); TRACE("in->bpp = %d\n", in->bmiHeader.biBitCount ); - TRACE("in->height = %d\n", in->bmiHeader.biHeight ); - TRACE("in->width = %d\n", in->bmiHeader.biWidth ); - TRACE("in->compr = 0x%x\n", in->bmiHeader.biCompression ); + TRACE("in->height = %ld\n", in->bmiHeader.biHeight ); + TRACE("in->width = %ld\n", in->bmiHeader.biWidth ); + TRACE("in->compr = 0x%lx\n", in->bmiHeader.biCompression ); if( ( in->bmiHeader.biCompression != CRAM_MAGIC ) && ( in->bmiHeader.biCompression != MSVC_MAGIC ) && ( in->bmiHeader.biCompression != WHAM_MAGIC ) ) { - TRACE("can't do 0x%x compression\n", in->bmiHeader.biCompression); + TRACE("can't do 0x%lx compression\n", in->bmiHeader.biCompression); return ICERR_BADFORMAT; } @@ -330,8 +330,8 @@ CRAM_DecompressQuery( Msvideo1Context *info, LPBITMAPINFO in, LPBITMAPINFO out ) { TRACE("out->planes = %d\n", out->bmiHeader.biPlanes ); TRACE("out->bpp = %d\n", out->bmiHeader.biBitCount ); - TRACE("out->height = %d\n", out->bmiHeader.biHeight ); - TRACE("out->width = %d\n", out->bmiHeader.biWidth ); + TRACE("out->height = %ld\n", out->bmiHeader.biHeight ); + TRACE("out->width = %ld\n", out->bmiHeader.biWidth ); if ((in->bmiHeader.biBitCount != out->bmiHeader.biBitCount) && (in->bmiHeader.biBitCount != 16 || out->bmiHeader.biBitCount != 24)) @@ -444,7 +444,7 @@ static LRESULT CRAM_Decompress( Msvideo1Context *info, ICDECOMPRESS *icd, DWORD LONG width, height, stride, sz; void *output; - TRACE("ICM_DECOMPRESS %p %p %d\n", info, icd, size); + TRACE("ICM_DECOMPRESS %p %p %ld\n", info, icd, size); if( (info==NULL) || (info->dwMagic!=CRAM_MAGIC) ) return ICERR_BADPARAM; @@ -490,7 +490,7 @@ static LRESULT CRAM_DecompressEx( Msvideo1Context *info, ICDECOMPRESSEX *icd, DW LONG width, height, stride, sz; void *output; - TRACE("ICM_DECOMPRESSEX %p %p %d\n", info, icd, size); + TRACE("ICM_DECOMPRESSEX %p %p %ld\n", info, icd, size); if( (info==NULL) || (info->dwMagic!=CRAM_MAGIC) ) return ICERR_BADPARAM; @@ -559,7 +559,7 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, Msvideo1Context *info = (Msvideo1Context *) dwDriverId; LRESULT r = ICERR_UNSUPPORTED; - TRACE("%ld %p %04x %08lx %08lx\n", dwDriverId, hdrvr, msg, lParam1, lParam2); + TRACE("%Id %p %04x %08Ix %08Ix\n", dwDriverId, hdrvr, msg, lParam1, lParam2); switch( msg ) { @@ -653,7 +653,7 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, break; default: - FIXME("Unknown message: %04x %ld %ld\n", msg, lParam1, lParam2); + FIXME("Unknown message: %04x %Id %Id\n", msg, lParam1, lParam2); } return r; @@ -664,7 +664,7 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, */ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved) { - TRACE("(%p,%d,%p)\n", hModule, dwReason, lpReserved); + TRACE("(%p,%ld,%p)\n", hModule, dwReason, lpReserved); switch (dwReason) {