mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 21:04:26 +00:00
[WIN32K]
- Giannis Adamopoulos: Only dereference a class if it's valid, should fix Heroes 3 crash. See issue #5606 for more details. svn path=/trunk/; revision=48732
This commit is contained in:
parent
cacc80ae3e
commit
0955523e4f
|
@ -2184,7 +2184,7 @@ CLEANUP:
|
||||||
/* If the window was created, the class will be dereferenced by co_UserDestroyWindow */
|
/* If the window was created, the class will be dereferenced by co_UserDestroyWindow */
|
||||||
if (Window)
|
if (Window)
|
||||||
co_UserDestroyWindow(Window);
|
co_UserDestroyWindow(Window);
|
||||||
else
|
else if (Class)
|
||||||
IntDereferenceClass(Class, pti->pDeskInfo, pti->ppi);
|
IntDereferenceClass(Class, pti->pDeskInfo, pti->ppi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue