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/ddra…
==============================================================================
--- 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;
}
Author: sginsberg
Date: Tue Nov 11 07:23:14 2008
New Revision: 37287
URL: http://svn.reactos.org/svn/reactos?rev=37287&view=rev
Log:
- Clear the flag before bugchecking
Modified:
trunk/reactos/ntoskrnl/kdbg/kdb.c
Modified: trunk/reactos/ntoskrnl/kdbg/kdb.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb.c?rev=37…
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb.c [iso-8859-1] Tue Nov 11 07:23:14 2008
@@ -1605,7 +1605,8 @@
/* Check if user requested a bugcheck */
if (KdbpBugCheckRequested)
{
- /* Bugcheck the system */
+ /* Clear the flag and bugcheck the system */
+ KdbpBugCheckRequested = FALSE;
KeBugCheck(MANUALLY_INITIATED_CRASH);
}