fixed difference in signedness warnings
Modified: trunk/reactos/lib/ddraw/main/ddraw.c
Modified: trunk/reactos/lib/ddraw/rosdraw.h

Modified: trunk/reactos/lib/ddraw/main/ddraw.c
--- trunk/reactos/lib/ddraw/main/ddraw.c	2005-10-02 12:46:49 UTC (rev 18213)
+++ trunk/reactos/lib/ddraw/main/ddraw.c	2005-10-02 13:47:48 UTC (rev 18214)
@@ -151,7 +151,7 @@
 ULONG WINAPI Main_DirectDraw_AddRef (LPDIRECTDRAW7 iface) 
 {
     IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
-    ULONG ref = InterlockedIncrement(&This->DirectDrawGlobal.dwRefCnt);
+    ULONG ref = InterlockedIncrement((PLONG)&This->DirectDrawGlobal.dwRefCnt);
 
    	return ref;
 }
@@ -159,7 +159,7 @@
 ULONG WINAPI Main_DirectDraw_Release (LPDIRECTDRAW7 iface) 
 {
     IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
-    ULONG ref = InterlockedDecrement(&This->DirectDrawGlobal.dwRefCnt);
+    ULONG ref = InterlockedDecrement((PLONG)&This->DirectDrawGlobal.dwRefCnt);
     
     if (ref == 0)
     {

Modified: trunk/reactos/lib/ddraw/rosdraw.h
--- trunk/reactos/lib/ddraw/rosdraw.h	2005-10-02 12:46:49 UTC (rev 18213)
+++ trunk/reactos/lib/ddraw/rosdraw.h	2005-10-02 13:47:48 UTC (rev 18214)
@@ -37,7 +37,7 @@
 typedef struct 
 {
 	IDirectDrawSurface7Vtbl* lpVtbl;
-    DWORD ref;
+    LONG ref;
 
     IDirectDrawImpl* owner;
 
@@ -49,7 +49,7 @@
 typedef struct 
 {
 	IDirectDrawClipperVtbl* lpVtbl;
-    DWORD ref;
+    LONG ref;
 
     IDirectDrawImpl* owner;
 
@@ -61,7 +61,7 @@
 typedef struct 
 {
 	IDirectDrawPaletteVtbl* lpVtbl;
-    DWORD ref;
+    LONG ref;
 
     IDirectDrawImpl* owner;