mirror of
https://github.com/reactos/reactos.git
synced 2025-07-13 17:34:18 +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
|
||||
DdDeleteDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
|
||||
{
|
||||
BOOL status;
|
||||
/* if pDirectDrawGlobal->hDD == NULL and pDirectDrawGlobalInternal->hDD == NULL
|
||||
return false */
|
||||
|
||||
|
@ -156,7 +157,13 @@ DdDeleteDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
|
|||
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…
Add table
Add a link
Reference in a new issue