From 23d5494796d6f9ef179e7b8df438682332c87de8 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 30 Oct 2005 17:30:53 +0000 Subject: [PATCH] fixed difference in signedness warnings svn path=/trunk/; revision=18888 --- reactos/lib/ddraw/main/clipper_main.c | 2 +- reactos/lib/ddraw/main/color_main.c | 2 +- reactos/lib/ddraw/main/gamma_main.c | 2 +- reactos/lib/ddraw/main/palette_main.c | 2 +- reactos/lib/ddraw/main/surface_main.c | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/lib/ddraw/main/clipper_main.c b/reactos/lib/ddraw/main/clipper_main.c index 28410ebdd6d..df9c973486c 100644 --- a/reactos/lib/ddraw/main/clipper_main.c +++ b/reactos/lib/ddraw/main/clipper_main.c @@ -14,7 +14,7 @@ ULONG WINAPI Main_DirectDrawClipper_Release(LPDIRECTDRAWCLIPPER iface) { IDirectDrawImpl* This = (IDirectDrawImpl*)iface; - ULONG ref = InterlockedDecrement(&This->DirectDrawGlobal.dwRefCnt); + ULONG ref = InterlockedDecrement((PLONG)&This->DirectDrawGlobal.dwRefCnt); if (ref == 0) HeapFree(GetProcessHeap(), 0, This); diff --git a/reactos/lib/ddraw/main/color_main.c b/reactos/lib/ddraw/main/color_main.c index 47e7aafffed..bf4cf009975 100644 --- a/reactos/lib/ddraw/main/color_main.c +++ b/reactos/lib/ddraw/main/color_main.c @@ -23,7 +23,7 @@ ULONG WINAPI Main_DirectDrawColorControl_Release(LPDIRECTDRAWCOLORCONTROL iface) { IDirectDrawImpl* This = (IDirectDrawImpl*)iface; - ULONG ref = InterlockedDecrement(&This->DirectDrawGlobal.dwRefCnt); + ULONG ref = InterlockedDecrement((PLONG)&This->DirectDrawGlobal.dwRefCnt); if (ref == 0) HeapFree(GetProcessHeap(), 0, This); diff --git a/reactos/lib/ddraw/main/gamma_main.c b/reactos/lib/ddraw/main/gamma_main.c index 8a5bc5c0ff0..84c989dfa96 100644 --- a/reactos/lib/ddraw/main/gamma_main.c +++ b/reactos/lib/ddraw/main/gamma_main.c @@ -23,7 +23,7 @@ ULONG WINAPI Main_DirectDrawGammaControl_Release(LPDIRECTDRAWGAMMACONTROL iface) { IDirectDrawImpl* This = (IDirectDrawImpl*)iface; - ULONG ref = InterlockedDecrement(&This->DirectDrawGlobal.dwRefCnt); + ULONG ref = InterlockedDecrement((PLONG)&This->DirectDrawGlobal.dwRefCnt); if (ref == 0) HeapFree(GetProcessHeap(), 0, This); diff --git a/reactos/lib/ddraw/main/palette_main.c b/reactos/lib/ddraw/main/palette_main.c index fd8f4a81fad..027ffe37c9c 100644 --- a/reactos/lib/ddraw/main/palette_main.c +++ b/reactos/lib/ddraw/main/palette_main.c @@ -22,7 +22,7 @@ Main_DirectDrawPalette_Release(LPDIRECTDRAWPALETTE iface) ULONG WINAPI Main_DirectDrawPalette_AddRef(LPDIRECTDRAWPALETTE iface) { IDirectDrawImpl* This = (IDirectDrawImpl*)iface; - ULONG ref = InterlockedDecrement(&This->DirectDrawGlobal.dwRefCnt); + ULONG ref = InterlockedDecrement((PLONG)&This->DirectDrawGlobal.dwRefCnt); if (ref == 0) HeapFree(GetProcessHeap(), 0, This); diff --git a/reactos/lib/ddraw/main/surface_main.c b/reactos/lib/ddraw/main/surface_main.c index 39c547c3f06..6939eb5b117 100644 --- a/reactos/lib/ddraw/main/surface_main.c +++ b/reactos/lib/ddraw/main/surface_main.c @@ -95,13 +95,13 @@ ULONG WINAPI Main_DDrawSurface_AddRef(LPDIRECTDRAWSURFACE7 iface) { IDirectDrawSurfaceImpl* This = (IDirectDrawSurfaceImpl*)iface; - return InterlockedIncrement(&This->owner->DirectDrawGlobal.dsList->dwIntRefCnt); + return InterlockedIncrement((PLONG)&This->owner->DirectDrawGlobal.dsList->dwIntRefCnt); } ULONG WINAPI Main_DDrawSurface_Release(LPDIRECTDRAWSURFACE7 iface) { IDirectDrawSurfaceImpl* This = (IDirectDrawSurfaceImpl*)iface; - ULONG ref = InterlockedDecrement(&This->owner->DirectDrawGlobal.dsList->dwIntRefCnt); + ULONG ref = InterlockedDecrement((PLONG)&This->owner->DirectDrawGlobal.dsList->dwIntRefCnt); if (ref == 0) HeapFree(GetProcessHeap(), 0, This);