Small fixes to the SEH library

svn path=/trunk/; revision=9600
This commit is contained in:
KJK::Hyperion 2004-06-03 04:14:07 +00:00
parent cb341561af
commit 6ce11dc878
2 changed files with 6 additions and 3 deletions

View file

@ -44,7 +44,10 @@ typedef struct __SEHFrame
} }
_SEHFrame_t; _SEHFrame_t;
static void __stdcall _SEHCompilerSpecificHandler(_SEHPortableFrame_t * frame) static __declspec(noreturn) void __stdcall _SEHCompilerSpecificHandler
(
_SEHPortableFrame_t * frame
)
{ {
_SEHFrame_t * myframe; _SEHFrame_t * myframe;
myframe = (_SEHFrame_t *)(((char *)frame) - offsetof(_SEHFrame_t, SEH_Header)); myframe = (_SEHFrame_t *)(((char *)frame) - offsetof(_SEHFrame_t, SEH_Header));

View file

@ -44,7 +44,7 @@ __SEHUnregisterFrame:
global __SEHUnwind global __SEHUnwind
__SEHUnwind: __SEHUnwind:
extern RtlUnwind extern _RtlUnwind@16
mov ecx, [esp+4] mov ecx, [esp+4]
@ -57,7 +57,7 @@ __SEHUnwind:
push eax push eax
push eax push eax
push ecx push ecx
call RtlUnwind call _RtlUnwind@16
pop ebx pop ebx
pop edi pop edi