mirror of
https://github.com/reactos/reactos.git
synced 2026-06-24 00:05:58 +08:00
fixed a bug in DdDeleteDirectDrawObject
Zero the DirectDraw handler if it have sussess been free svn path=/trunk/; revision=25210
This commit is contained in:
@@ -742,6 +742,10 @@ DdDeleteDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
|
||||
{
|
||||
/* Free it */
|
||||
Return = NtGdiDdDeleteDirectDrawObject((HANDLE)pDirectDrawGlobal->hDD);
|
||||
if (Return == TRUE)
|
||||
{
|
||||
pDirectDrawGlobal->hDD = 0;
|
||||
}
|
||||
}
|
||||
else if (ghDirectDraw)
|
||||
{
|
||||
@@ -753,7 +757,10 @@ DdDeleteDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
|
||||
{
|
||||
/* Delete the object */
|
||||
Return = NtGdiDdDeleteDirectDrawObject(ghDirectDraw);
|
||||
ghDirectDraw = 0;
|
||||
if (Return == TRUE)
|
||||
{
|
||||
ghDirectDraw = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user