mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
[WIN32K]
- Reference cursor and icon objects when copying a class from one heap to another. CORE-7575 svn path=/trunk/; revision=64914
This commit is contained in:
@@ -838,6 +838,16 @@ IntMoveClassToSharedHeap(IN OUT PCLS Class,
|
||||
NewClass->rpdeskParent = NULL;
|
||||
NewClass->pclsBase = NewClass;
|
||||
|
||||
#ifdef NEW_CURSORICON
|
||||
if (NewClass->spcur)
|
||||
UserReferenceObject(NewClass->spcur);
|
||||
if (NewClass->spicn)
|
||||
UserReferenceObject(NewClass->spicn);
|
||||
if (NewClass->spicnSm)
|
||||
UserReferenceObject(NewClass->spicnSm);
|
||||
#endif
|
||||
|
||||
|
||||
/* Replace the class in the list */
|
||||
(void)InterlockedExchangePointer((PVOID*)*ClassLinkPtr,
|
||||
NewClass);
|
||||
|
||||
Reference in New Issue
Block a user