From 6ac552ed89673909dd00627ff17fe0a7f4965ab0 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Tue, 22 Feb 2022 09:42:52 +0100 Subject: [PATCH] wing.dll16: Enable compilation with long types. Signed-off-by: Eric Pouech Signed-off-by: Alexandre Julliard --- dlls/wing.dll16/Makefile.in | 1 - dlls/wing.dll16/wing.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/wing.dll16/Makefile.in b/dlls/wing.dll16/Makefile.in index af007d4c641..d9b936ea98a 100644 --- a/dlls/wing.dll16/Makefile.in +++ b/dlls/wing.dll16/Makefile.in @@ -1,4 +1,3 @@ -EXTRADEFS = -DWINE_NO_LONG_TYPES MODULE = wing.dll16 IMPORTS = gdi32 EXTRADLLFLAGS = -m16 diff --git a/dlls/wing.dll16/wing.c b/dlls/wing.dll16/wing.c index 98cee565405..44c2f40eb1c 100644 --- a/dlls/wing.dll16/wing.c +++ b/dlls/wing.dll16/wing.c @@ -173,7 +173,7 @@ HBITMAP16 WINAPI WinGCreateBitmap16(HDC16 hdc, BITMAPINFO *bmpi, SEGPTR *bits) LPVOID bits32; HBITMAP hbitmap; - TRACE("(%d,%p,%p): create %dx%dx%d bitmap\n", hdc, bmpi, bits, + TRACE("(%d,%p,%p): create %ldx%ldx%d bitmap\n", hdc, bmpi, bits, bmpi->bmiHeader.biWidth, bmpi->bmiHeader.biHeight, bmpi->bmiHeader.biPlanes); hbitmap = CreateDIBSection( HDC_32(hdc), bmpi, DIB_RGB_COLORS, &bits32, 0, 0 ); @@ -278,7 +278,7 @@ HPALETTE16 WINAPI WinGCreateHalfTonePalette16(void) HBRUSH16 WINAPI WinGCreateHalfToneBrush16(HDC16 winDC, COLORREF col, WING_DITHER_TYPE type) { - TRACE("(%d,%d,%d)\n", winDC, col, type); + TRACE("(%d,%ld,%d)\n", winDC, col, type); return HBRUSH_16( CreateSolidBrush( col )); }