[ros-diffs] [greatlrd] 37290: 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

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Tue Nov 11 18:37:58 CET 2008


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/Surface/createsurface.c?rev=37290&r1=37289&r2=37290&view=diff
==============================================================================
--- 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;
     }



More information about the Ros-diffs mailing list