Skip to content

Commit e8b7ff8

Browse files
committed
It's actually C, not C++ code
1 parent bffb4f6 commit e8b7ff8

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ BOOL Validate_AllowDarkModeForWindow(const BYTE* functionPtr)
8080

8181
return FALSE;
8282
#elif defined(_M_ARM64)
83-
if (*reinterpret_cast<const uint32_t*>(&functionPtr[0x18]) == 0xD29523C1) // mov x1,#0xA91E
83+
if (*(const DWORD*)(&functionPtr[0x18]) == 0xD29523C1) // mov x1,#0xA91E
8484
{
8585
return TRUE;
8686
}
@@ -137,7 +137,7 @@ BOOL Validate_AllowDarkModeForWindowWithTelemetryId(const BYTE* functionPtr)
137137

138138
return FALSE;
139139
#elif defined(_M_ARM64)
140-
if (*reinterpret_cast<const uint32_t*>(&functionPtr[0x18]) == 0xD29523C1) // mov x1,#0xA91E
140+
if (*(const DWORD*)(&functionPtr[0x18]) == 0xD29523C1) // mov x1,#0xA91E
141141
{
142142
return TRUE;
143143
}
@@ -234,7 +234,7 @@ BOOL Validate_SetPreferredAppMode(const BYTE* functionPtr)
234234
(functionPtr[0x06] == 0x87) && (functionPtr[0x07] == 0x0D) && // xchg ecx,dword ptr [uxtheme!g_preferredAppMode]
235235
(functionPtr[0x0C] == 0xC3); // ret
236236
#elif defined(_M_ARM64)
237-
if (*reinterpret_cast<const uint32_t*>(&functionPtr[0x1C]) == 0x912F6100) // add x0,x8,#0xBD8
237+
if (*(const DWORD*)(&functionPtr[0x1C]) == 0x912F6100) // add x0,x8,#0xBD8
238238
{
239239
return TRUE;
240240
}

0 commit comments

Comments
 (0)