Skip to content

Commit

Permalink
Win32: Update search for AllowDarkModeForWindowWithTelemetryId for 24H2
Browse files Browse the repository at this point in the history
Fixes #1546
  • Loading branch information
sratz committed Oct 21, 2024
1 parent 2b675ad commit db519ef
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ BOOL Validate_AllowDarkModeForWindowWithTelemetryId(const BYTE* functionPtr)
return TRUE;
}

/* Win11 builds from 26100 */
if ((functionPtr[0x16] == 0xBE) && // mov edi,
(*(const DWORD*)(functionPtr + 0x17) == 0xA91E)) // 0A91Eh
{
return TRUE;
}

return FALSE;
#elif defined(_M_ARM64)
if (*(const DWORD*)(&functionPtr[0x18]) == 0xD29523C1) // mov x1,#0xA91E
Expand Down

0 comments on commit db519ef

Please sign in to comment.