summarylogtreecommitdiffstats
path: root/0008-ntdll-nopguard-call_vectored_handlers.patch
blob: ffb1d22dff42b20b7bfe530fabb7b59debf041f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/dlls/ntdll/exception.c b/dlls/ntdll/exception.c
index fc3e8982a98..a975e5c897a 100644
--- a/dlls/ntdll/exception.c
+++ b/dlls/ntdll/exception.c
@@ -168,7 +168,9 @@ LONG call_vectored_handlers( EXCEPTION_RECORD *rec, CONTEXT *context )
 
         TRACE( "calling handler at %p code=%lx flags=%lx\n",
                func, rec->ExceptionCode, rec->ExceptionFlags );
+        __asm__ __volatile__(".rept 16 ; nop ; .endr");
         ret = func( &except_ptrs );
+        __asm__ __volatile__(".rept 16 ; nop ; .endr");
         TRACE( "handler at %p returned %lx\n", func, ret );
 
         RtlEnterCriticalSection( &vectored_handlers_section );