mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
fixing a bug in gdientry3, found it when I wrote the doc
svn path=/trunk/; revision=21853
This commit is contained in:
parent
f11806f4f0
commit
026816c434
1 changed files with 9 additions and 2 deletions
|
@ -144,6 +144,7 @@ BOOL
|
||||||
STDCALL
|
STDCALL
|
||||||
DdDeleteDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
|
DdDeleteDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
|
||||||
{
|
{
|
||||||
|
BOOL status;
|
||||||
/* if pDirectDrawGlobal->hDD == NULL and pDirectDrawGlobalInternal->hDD == NULL
|
/* if pDirectDrawGlobal->hDD == NULL and pDirectDrawGlobalInternal->hDD == NULL
|
||||||
return false */
|
return false */
|
||||||
|
|
||||||
|
@ -155,8 +156,14 @@ DdDeleteDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
|
||||||
}
|
}
|
||||||
return NtGdiDdDeleteDirectDrawObject((HANDLE)pDirectDrawGlobalInternal->hDD);
|
return NtGdiDdDeleteDirectDrawObject((HANDLE)pDirectDrawGlobalInternal->hDD);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NtGdiDdDeleteDirectDrawObject((HANDLE)pDirectDrawGlobal->hDD);
|
status = NtGdiDdDeleteDirectDrawObject((HANDLE)pDirectDrawGlobal->hDD);
|
||||||
|
if (status == TRUE) && (pDirectDrawGlobalInternal->hDD != NULL)
|
||||||
|
{
|
||||||
|
pDirectDrawGlobalInternal->hDD = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue