Fixed param checks in createsurface code. and one wrong if check
authorMagnus Olsen <magnus@greatlord.com>
Sat, 15 Dec 2007 21:34:17 +0000 (21:34 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Sat, 15 Dec 2007 21:34:17 +0000 (21:34 +0000)
svn path=/trunk/; revision=31260

reactos/dll/directx/ddraw/Surface/createsurface.c

index 7743031..ef7a203 100644 (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;
     }