mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Workaround for bug 899
svn path=/trunk/; revision=18411
This commit is contained in:
parent
2d8f114871
commit
71552e4e2f
1 changed files with 12 additions and 3 deletions
|
@ -68,12 +68,21 @@ ClassRefObject(PWNDCLASS_OBJECT Class)
|
|||
VOID FASTCALL DestroyClass(PWNDCLASS_OBJECT Class)
|
||||
{
|
||||
PWINSTATION_OBJECT WinSta;
|
||||
WinSta = PsGetWin32Thread()->Desktop->WindowStation;
|
||||
|
||||
ASSERT(Class->refs == 0);
|
||||
RemoveEntryList(&Class->ListEntry);
|
||||
//FIXME: release ATOM
|
||||
RtlDeleteAtomFromAtomTable(WinSta->AtomTable, Class->Atom);
|
||||
|
||||
/* FIXME See bug 899 */
|
||||
if (NULL != PsGetWin32Thread())
|
||||
{
|
||||
WinSta = PsGetWin32Thread()->Desktop->WindowStation;
|
||||
//FIXME: release ATOM
|
||||
RtlDeleteAtomFromAtomTable(WinSta->AtomTable, Class->Atom);
|
||||
}
|
||||
else
|
||||
{
|
||||
DPRINT1("Can't locate window station, see bug 899\n");
|
||||
}
|
||||
ExFreePool(Class);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue