win32: Avoid build error when using old SDK headers

floating-point
Nicolas Hake 2011-03-04 00:08:11 +01:00
parent 0800b3a209
commit 73ec989261
1 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,11 @@ namespace {
LOG_STATIC_TEXT("Additional information for the exception: The thread ");
switch (exc->ExceptionRecord->ExceptionInformation[0])
{
#ifndef EXCEPTION_READ_FAULT
# define EXCEPTION_READ_FAULT 0
# define EXCEPTION_WRITE_FAULT 1
# define EXCEPTION_EXECUTE_FAULT 8
#endif
case EXCEPTION_READ_FAULT: LOG_STATIC_TEXT("tried to read from memory"); break;
case EXCEPTION_WRITE_FAULT: LOG_STATIC_TEXT("tried to write to memory"); break;
case EXCEPTION_EXECUTE_FAULT: LOG_STATIC_TEXT("caused an user-mode DEP violation"); break;