win32 paranoia in seh handling

erg 2006-08-03 22:17:24 +00:00
parent d205fc3808
commit 0a8ac653de
1 changed files with 3 additions and 1 deletions

View File

@ -230,7 +230,9 @@ long getpagesize (void) {
static void exception_handler(PEXCEPTION_RECORD rec, void *frame, void *ctx, void *dispatch)
{
memory_protection_error((void*)rec->ExceptionInformation[1],SIGSEGV);
memory_protection_error(
rec->NumberParameters >= 2 ? (void*)rec->ExceptionInformation[1] : 0,
SIGSEGV);
}
void platform_run(void)