Fixed param checks in createsurface code. and one wrong if check

svn path=/trunk/; revision=31260
This commit is contained in:
Magnus Olsen 2007-12-15 21:34:17 +00:00
parent 567306df67
commit 442b5501fe

View file

@ -39,8 +39,7 @@ Internal_CreateSurface( LPDDRAWI_DIRECTDRAW_INT pDDraw, LPDDSURFACEDESC2 pDDSD,
DWORD num_of_surf=1;
DWORD count;
/* Fixme adding vaidlate of income param */
if(pDDraw->lpLcl->dwLocalFlags == 0x20000)
if(pDDraw->lpLcl->dwLocalFlags != DDRAWILCL_SETCOOPCALLED)
{
return DDERR_NOCOOPERATIVELEVELSET;
}