mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
bugfix a bsod in DD_Cleanup
svn path=/trunk/; revision=20078
This commit is contained in:
@@ -19,16 +19,19 @@
|
||||
|
||||
BOOL INTERNAL_CALL
|
||||
DD_Cleanup(PVOID ObjectBody)
|
||||
{
|
||||
if (ObjectBody == NULL)
|
||||
return FALSE;
|
||||
|
||||
{
|
||||
PDD_DIRECTDRAW pDirectDraw = (PDD_DIRECTDRAW) ObjectBody;
|
||||
DPRINT1("DD_Cleanup\n");
|
||||
|
||||
if (!pDirectDraw)
|
||||
return FALSE;
|
||||
|
||||
|
||||
if (pDirectDraw->Global.dhpdev == NULL)
|
||||
return FALSE;
|
||||
|
||||
if (pDirectDraw->DrvDisableDirectDraw == NULL)
|
||||
return FALSE;
|
||||
|
||||
pDirectDraw->DrvDisableDirectDraw(pDirectDraw->Global.dhpdev);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user