From f426a5c1701b6531b8990f0d450bb36667f89123 Mon Sep 17 00:00:00 2001 From: Tue Ton <49886739+chirontt@users.noreply.github.com> Date: Sat, 17 Feb 2024 00:00:21 -0500 Subject: [PATCH] restore the os_custom.c file to its base version --- .../Eclipse SWT PI/win32/library/os_custom.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_custom.c b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_custom.c index cddc8d5f177..606f5bcb00f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_custom.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_custom.c @@ -79,10 +79,6 @@ BOOL Validate_AllowDarkModeForWindow(const BYTE* functionPtr) } return FALSE; -#elif defined(_M_ARM64) - /* No implementation needed for Windows 11 on Arm64 */ - functionPtr; /* to prevent: warning C4100: 'functionPtr': unreferenced formal parameter */ - return TRUE; #else #error Unsupported processor type #endif @@ -133,10 +129,6 @@ BOOL Validate_AllowDarkModeForWindowWithTelemetryId(const BYTE* functionPtr) } return FALSE; -#elif defined(_M_ARM64) - /* No implementation needed for Windows 11 on Arm64 */ - functionPtr; /* to prevent: warning C4100: 'functionPtr': unreferenced formal parameter */ - return TRUE; #else #error Unsupported processor type #endif @@ -227,10 +219,6 @@ BOOL Validate_SetPreferredAppMode(const BYTE* functionPtr) (functionPtr[0x00] == 0x8B) && (functionPtr[0x01] == 0x05) && // mov eax,dword ptr [uxtheme!g_preferredAppMode] (functionPtr[0x06] == 0x87) && (functionPtr[0x07] == 0x0D) && // xchg ecx,dword ptr [uxtheme!g_preferredAppMode] (functionPtr[0x0C] == 0xC3); // ret -#elif defined(_M_ARM64) - /* No implementation needed for Windows 11 on Arm64 */ - functionPtr; /* to prevent: warning C4100: 'functionPtr': unreferenced formal parameter */ - return TRUE; #else #error Unsupported processor type #endif