fixed difference in signedness warnings
Modified: trunk/reactos/lib/ddraw/main/clipper_main.c
Modified: trunk/reactos/lib/ddraw/main/color_main.c
Modified: trunk/reactos/lib/ddraw/main/gamma_main.c
Modified: trunk/reactos/lib/ddraw/main/palette_main.c
Modified: trunk/reactos/lib/ddraw/main/surface_main.c
_____
Modified: trunk/reactos/lib/ddraw/main/clipper_main.c
--- trunk/reactos/lib/ddraw/main/clipper_main.c 2005-10-30 16:14:42 UTC
(rev 18887)
+++ trunk/reactos/lib/ddraw/main/clipper_main.c 2005-10-30 17:30:53 UTC
(rev 18888)
@@ -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);
_____
Modified: trunk/reactos/lib/ddraw/main/color_main.c
--- trunk/reactos/lib/ddraw/main/color_main.c 2005-10-30 16:14:42 UTC
(rev 18887)
+++ trunk/reactos/lib/ddraw/main/color_main.c 2005-10-30 17:30:53 UTC
(rev 18888)
@@ -23,7 +23,7 @@
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);
_____
Modified: trunk/reactos/lib/ddraw/main/gamma_main.c
--- trunk/reactos/lib/ddraw/main/gamma_main.c 2005-10-30 16:14:42 UTC
(rev 18887)
+++ trunk/reactos/lib/ddraw/main/gamma_main.c 2005-10-30 17:30:53 UTC
(rev 18888)
@@ -23,7 +23,7 @@
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);
_____
Modified: trunk/reactos/lib/ddraw/main/palette_main.c
--- trunk/reactos/lib/ddraw/main/palette_main.c 2005-10-30 16:14:42 UTC
(rev 18887)
+++ trunk/reactos/lib/ddraw/main/palette_main.c 2005-10-30 17:30:53 UTC
(rev 18888)
@@ -22,7 +22,7 @@
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);
_____
Modified: trunk/reactos/lib/ddraw/main/surface_main.c
--- trunk/reactos/lib/ddraw/main/surface_main.c 2005-10-30 16:14:42 UTC
(rev 18887)
+++ trunk/reactos/lib/ddraw/main/surface_main.c 2005-10-30 17:30:53 UTC
(rev 18888)
@@ -95,13 +95,13 @@
{
IDirectDrawSurfaceImpl* This = (IDirectDrawSurfaceImpl*)iface;
- return
InterlockedIncrement(&This->owner->DirectDrawGlobal.dsList->dwIntRefCnt)
;
+ return
InterlockedIncrement((PLONG)&This->owner->DirectDrawGlobal.dsList->dwInt
RefCnt);
}
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->dwInt
RefCnt);
if (ref == 0)
HeapFree(GetProcessHeap(), 0, This);