fixing a typcast do it compile on gcc 4.0 thx w3seek

svn path=/trunk/; revision=21536
This commit is contained in:
Magnus Olsen 2006-04-09 18:28:53 +00:00
parent 6cc73a301f
commit a7013502aa

View file

@ -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)
{