mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 06:27:38 +00:00
Fixed param checks in createsurface code. and one wrong if check
svn path=/trunk/; revision=31260
This commit is contained in:
parent
567306df67
commit
442b5501fe
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue