Thx Royce3 for notice's a typo error CreateData to CanCreateData in a if
statement. But it is not the bug we are looking for.
Modified: trunk/reactos/lib/ddraw/main/surface.c
_____
Modified: trunk/reactos/lib/ddraw/main/surface.c
--- trunk/reactos/lib/ddraw/main/surface.c 2005-08-09 06:28:23 UTC
(rev 17232)
+++ trunk/reactos/lib/ddraw/main/surface.c 2005-08-09 07:42:00 UTC
(rev 17233)
@@ -72,7 +72,7 @@
if (This->owner->DriverCallbacks.DdMain.CanCreateSurface
(&CanCreateData) == DDHAL_DRIVER_NOTHANDLED)
return DDERR_INVALIDPARAMS;
- if(CreateData.ddRVal != DD_OK)
+ if(CanCreateData.ddRVal != DD_OK)
return CanCreateData.ddRVal;
It is generally considered a bad idea to dereference an object after the
reference failed..... this fixes another wine test and avoids a bugcheck
Modified: trunk/reactos/ntoskrnl/ps/query.c
_____
Modified: trunk/reactos/ntoskrnl/ps/query.c
--- trunk/reactos/ntoskrnl/ps/query.c 2005-08-09 06:23:16 UTC (rev
17231)
+++ trunk/reactos/ntoskrnl/ps/query.c 2005-08-09 06:28:23 UTC (rev
17232)
@@ -1233,9 +1233,9 @@
/* Shoult never occure if the data table is correct */
KEBUGCHECK(0);
}
+ ObDereferenceObject (Thread);
}
- ObDereferenceObject (Thread);
-
+
return Status;
}