fixed difference in signedness warnings

svn path=/trunk/; revision=18214
This commit is contained in:
Thomas Bluemel 2005-10-02 13:47:48 +00:00
parent 0e10526c80
commit d5169058c9
2 changed files with 5 additions and 5 deletions

View file

@ -151,7 +151,7 @@ HRESULT WINAPI Main_DirectDraw_CreateSurface (LPDIRECTDRAW7 iface, LPDDSURFACEDE
ULONG WINAPI Main_DirectDraw_AddRef (LPDIRECTDRAW7 iface) ULONG WINAPI Main_DirectDraw_AddRef (LPDIRECTDRAW7 iface)
{ {
IDirectDrawImpl* This = (IDirectDrawImpl*)iface; IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
ULONG ref = InterlockedIncrement(&This->DirectDrawGlobal.dwRefCnt); ULONG ref = InterlockedIncrement((PLONG)&This->DirectDrawGlobal.dwRefCnt);
return ref; return ref;
} }
@ -159,7 +159,7 @@ ULONG WINAPI Main_DirectDraw_AddRef (LPDIRECTDRAW7 iface)
ULONG WINAPI Main_DirectDraw_Release (LPDIRECTDRAW7 iface) ULONG WINAPI Main_DirectDraw_Release (LPDIRECTDRAW7 iface)
{ {
IDirectDrawImpl* This = (IDirectDrawImpl*)iface; IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
ULONG ref = InterlockedDecrement(&This->DirectDrawGlobal.dwRefCnt); ULONG ref = InterlockedDecrement((PLONG)&This->DirectDrawGlobal.dwRefCnt);
if (ref == 0) if (ref == 0)
{ {

View file

@ -37,7 +37,7 @@ typedef struct
typedef struct typedef struct
{ {
IDirectDrawSurface7Vtbl* lpVtbl; IDirectDrawSurface7Vtbl* lpVtbl;
DWORD ref; LONG ref;
IDirectDrawImpl* owner; IDirectDrawImpl* owner;
@ -49,7 +49,7 @@ typedef struct
typedef struct typedef struct
{ {
IDirectDrawClipperVtbl* lpVtbl; IDirectDrawClipperVtbl* lpVtbl;
DWORD ref; LONG ref;
IDirectDrawImpl* owner; IDirectDrawImpl* owner;
@ -61,7 +61,7 @@ typedef struct
typedef struct typedef struct
{ {
IDirectDrawPaletteVtbl* lpVtbl; IDirectDrawPaletteVtbl* lpVtbl;
DWORD ref; LONG ref;
IDirectDrawImpl* owner; IDirectDrawImpl* owner;