From a7013502aa8d41f202dc9ceebce4da245dbe5f14 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 9 Apr 2006 18:28:53 +0000 Subject: [PATCH] fixing a typcast do it compile on gcc 4.0 thx w3seek svn path=/trunk/; revision=21536 --- reactos/dll/directx/ddraw/main/ddraw_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/directx/ddraw/main/ddraw_main.c b/reactos/dll/directx/ddraw/main/ddraw_main.c index 3beb96a35e3..a40b0dce48f 100644 --- a/reactos/dll/directx/ddraw/main/ddraw_main.c +++ b/reactos/dll/directx/ddraw/main/ddraw_main.c @@ -121,7 +121,7 @@ Main_DirectDraw_AddRef (LPDIRECTDRAW7 iface) if (iface!=NULL) { - ref = InterlockedIncrement(&This->ref); + ref = InterlockedIncrement( (PLONG) &This->ref); } return ref; } @@ -143,7 +143,7 @@ Main_DirectDraw_Release (LPDIRECTDRAW7 iface) if (iface!=NULL) { - ref = InterlockedDecrement(&This->ref); + ref = InterlockedDecrement( (PLONG) &This->ref); if (ref == 0) {