Skip to content

Commit

Permalink
restore the os_custom.c file to its base version
Browse files Browse the repository at this point in the history
  • Loading branch information
chirontt committed Feb 17, 2024
1 parent b8e44f9 commit f426a5c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_custom.c
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f426a5c

Please sign in to comment.