This fixes the struct used to enable the Arbitrary Code Guard mitigation or query its status on Windows. The size of the struct was wrong, which could lead calls to Get/SetProcessMitigationPolicy to fail with the last error set to ERROR_INVALID_PARAMETER.
Signed-off-by: Yannis Juglaret <[email protected]> --- mingw-w64-headers/include/winnt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/winnt.h b/mingw-w64-headers/include/winnt.h index b9e123840..e6c21f714 100644 --- a/mingw-w64-headers/include/winnt.h +++ b/mingw-w64-headers/include/winnt.h @@ -4660,7 +4660,7 @@ __buildmemorybarrier() DWORD ProhibitDynamicCode :1; DWORD AllowThreadOptOut :1; DWORD AllowRemoteDowngrade :1; - DWORD ReservedFlags :30; + DWORD ReservedFlags :29; }; }; } PROCESS_MITIGATION_DYNAMIC_CODE_POLICY, *PPROCESS_MITIGATION_DYNAMIC_CODE_POLICY; -- 2.37.3.windows.1 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
