File tree 1 file changed +21
-0
lines changed
bundles/org.eclipse.swt/Eclipse SWT PI/win32/library
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,13 @@ BOOL Validate_AllowDarkModeForWindow(const BYTE* functionPtr)
78
78
return TRUE;
79
79
}
80
80
81
+ return FALSE;
82
+ #elif defined(_M_ARM64 )
83
+ if (* (const DWORD * )(& functionPtr [0x18 ]) == 0xD29523C1 ) // mov x1,#0xA91E
84
+ {
85
+ return TRUE;
86
+ }
87
+
81
88
return FALSE;
82
89
#else
83
90
#error Unsupported processor type
@@ -128,6 +135,13 @@ BOOL Validate_AllowDarkModeForWindowWithTelemetryId(const BYTE* functionPtr)
128
135
return TRUE;
129
136
}
130
137
138
+ return FALSE;
139
+ #elif defined(_M_ARM64 )
140
+ if (* (const DWORD * )(& functionPtr [0x18 ]) == 0xD29523C1 ) // mov x1,#0xA91E
141
+ {
142
+ return TRUE;
143
+ }
144
+
131
145
return FALSE;
132
146
#else
133
147
#error Unsupported processor type
@@ -219,6 +233,13 @@ BOOL Validate_SetPreferredAppMode(const BYTE* functionPtr)
219
233
(functionPtr [0x00 ] == 0x8B ) && (functionPtr [0x01 ] == 0x05 ) && // mov eax,dword ptr [uxtheme!g_preferredAppMode]
220
234
(functionPtr [0x06 ] == 0x87 ) && (functionPtr [0x07 ] == 0x0D ) && // xchg ecx,dword ptr [uxtheme!g_preferredAppMode]
221
235
(functionPtr [0x0C ] == 0xC3 ); // ret
236
+ #elif defined(_M_ARM64 )
237
+ if (* (const DWORD * )(& functionPtr [0x1C ]) == 0x912F6100 ) // add x0,x8,#0xBD8
238
+ {
239
+ return TRUE;
240
+ }
241
+
242
+ return FALSE;
222
243
#else
223
244
#error Unsupported processor type
224
245
#endif
You can’t perform that action at this time.
0 commit comments