This allows the compiler to generate correct code to resume
execution when returning to this point later.

Signed-off-by: Martin Storsjö <mar...@martin.st>
---
 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 685583864..adfb42d79 100644
--- a/mingw-w64-headers/include/winnt.h
+++ b/mingw-w64-headers/include/winnt.h
@@ -8763,7 +8763,7 @@ 
DEFINE_ENUM_FLAG_OPERATORS(JOB_OBJECT_IO_RATE_CONTROL_FLAGS)
     NTSYSAPI WORD NTAPI RtlCaptureStackBackTrace (DWORD FramesToSkip, DWORD 
FramesToCapture, PVOID *BackTrace, PDWORD BackTraceHash);
 #endif
 #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
-    NTSYSAPI VOID NTAPI RtlCaptureContext (PCONTEXT ContextRecord);
+    NTSYSAPI VOID NTAPI __attribute__((__returns_twice__)) RtlCaptureContext 
(PCONTEXT ContextRecord);
     NTSYSAPI SIZE_T NTAPI RtlCompareMemory (const VOID *Source1, const VOID 
*Source2, SIZE_T Length);
 #if defined (__x86_64__)
 #if _WIN32_WINNT >= 0x0602
-- 
2.34.1



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to