Author: greatlrd Date: Tue Nov 11 11:37:58 2008 New Revision: 37290
URL: http://svn.reactos.org/svn/reactos?rev=37290&view=rev Log: Fix smaller bug in ddraw, This allow our ddraw.dll works with our demo apps in rosapps, The DDRAWILCL_SETCOOPCALLED was wrong checked if it was set or not in Internal_CreateSurface
Modified: branches/reactx/reactos/dll/directx/ddraw/Surface/createsurface.c
Modified: branches/reactx/reactos/dll/directx/ddraw/Surface/createsurface.c URL: http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/directx/ddraw... ============================================================================== --- branches/reactx/reactos/dll/directx/ddraw/Surface/createsurface.c [iso-8859-1] (original) +++ branches/reactx/reactos/dll/directx/ddraw/Surface/createsurface.c [iso-8859-1] Tue Nov 11 11:37:58 2008 @@ -39,7 +39,7 @@ DWORD count; HRESULT ret;
- if(pDDraw->lpLcl->dwLocalFlags != DDRAWILCL_SETCOOPCALLED) + if ( (pDDraw->lpLcl->dwLocalFlags & DDRAWILCL_SETCOOPCALLED) != DDRAWILCL_SETCOOPCALLED) { return DDERR_NOCOOPERATIVELEVELSET; }