Skip to content

Commit 67402fd

Browse files
committed
Win32: Update search for AllowDarkModeForWindowWithTelemetryId for 24H2
Fixes #1546
1 parent f508f6e commit 67402fd

File tree

1 file changed

+7
-0
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT PI/win32/library

1 file changed

+7
-0
lines changed

bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_custom.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ BOOL Validate_AllowDarkModeForWindowWithTelemetryId(const BYTE* functionPtr)
135135
return TRUE;
136136
}
137137

138+
/* Win11 builds from 26100 */
139+
if ((functionPtr[0x16] == 0xBE) && // mov esi,
140+
(*(const DWORD*)(functionPtr + 0x17) == 0xA91E)) // 0A91Eh
141+
{
142+
return TRUE;
143+
}
144+
138145
return FALSE;
139146
#elif defined(_M_ARM64)
140147
if (*(const DWORD*)(&functionPtr[0x18]) == 0xD29523C1) // mov x1,#0xA91E

0 commit comments

Comments
 (0)