You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
ntdll-Fix_Alignment: Use DECLSPEC_ALIGN instead of __attribute__((aligned(..))).
This commit is contained in:
@@ -16,12 +16,12 @@ index 4819d2d..63ba0a3 100644
|
||||
static BOOL use_locks;
|
||||
static BOOL force_exec_prot; /* whether to force PROT_EXEC on all PROT_READ mmaps */
|
||||
|
||||
+#if defined(__i386__) && defined(__GNUC__)
|
||||
+#if defined(__i386__)
|
||||
+NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T *size_ptr,
|
||||
+ ULONG new_prot, ULONG *old_prot ) __attribute__((aligned(4096)));
|
||||
+ ULONG new_prot, ULONG *old_prot ) DECLSPEC_ALIGN(4096);
|
||||
+NTSTATUS WINAPI NtCreateSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr,
|
||||
+ const LARGE_INTEGER *size, ULONG protect,
|
||||
+ ULONG sec_flags, HANDLE file ) __attribute__((aligned(4096)));
|
||||
+ ULONG sec_flags, HANDLE file ) DECLSPEC_ALIGN(4096);
|
||||
+#endif
|
||||
|
||||
/***********************************************************************
|
||||
|
@@ -1,4 +1,4 @@
|
||||
Author: Michael Müller
|
||||
Subject: Move NtProtectVirtualMemory and NtCreateSection to separate pages in ntdll on x86.
|
||||
Revision: 1
|
||||
Revision: 2
|
||||
Fixes: [33162] Ensure NtProtectVirtualMemory and NtCreateSection are on separate pages
|
||||
|
Reference in New Issue
Block a user