[NTGDI] Fix 3D-text screensaver not moving in preview mode (#8402)

Thanks, @I_Kill_Bugs for the fix.
CORE-5601
This commit is contained in:
Doug Lyons
2025-10-10 15:59:13 -05:00
committed by GitHub
parent 0172338964
commit ad6cb32fa5

View File

@@ -479,6 +479,13 @@ ENTRY_ReferenceEntryByHandle(HGDIOBJ hobj, FLONG fl)
{
ULONG ulIndex, cNewRefs, cOldRefs;
PENTRY pentry;
PTHREADINFO pti = PsGetCurrentThreadWin32Thread();
/* HACK: This may be a hack but it fixes CORE-5601.
* Allow a window that is moving or resizing to have access to all of its child
* windows dc's even if the dc belongs to another process i.e. 3D Screensaver */
if (pti && pti->TIF_flags & TIF_MOVESIZETRACKING)
fl = GDIOBJFLAG_IGNOREPID;
/* Get the handle index and check if its too big */
ulIndex = GDI_HANDLE_GET_INDEX(hobj);