From 1b54b4882c580bc28f263ac2098d2ed80652963e Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 2 Nov 2013 16:50:50 +0000 Subject: [PATCH] [PSEH3] Fix a bug that could result in an endless loop and which caused the bootcd to hang on an exception. svn path=/trunk/; revision=60837 --- reactos/include/reactos/libs/pseh/pseh3.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/include/reactos/libs/pseh/pseh3.h b/reactos/include/reactos/libs/pseh/pseh3.h index dedddf007e3..d1168893894 100644 --- a/reactos/include/reactos/libs/pseh/pseh3.h +++ b/reactos/include/reactos/libs/pseh/pseh3.h @@ -244,6 +244,8 @@ void * __cdecl __attribute__((error("Can only be used inside an exception filter \ if (1) \ { \ + /* Prevent this block from being optimized away */ \ + asm volatile ("#\n"); \ do