Fixes for non-i386 compiling.
This commit is contained in:
parent
1ed4ecffa8
commit
3742d77fdb
|
@ -145,7 +145,7 @@ static inline EXCEPTION_FRAME *EXC_push_frame( EXCEPTION_FRAME *frame )
|
|||
: "=&r" (prev) : "r" (frame) : "memory" );
|
||||
return prev;
|
||||
#else
|
||||
TEB * teb = CURRENT();
|
||||
TEB *teb = NtCurrentTeb();
|
||||
frame->Prev = teb->except;
|
||||
teb->except = frame;
|
||||
return frame->Prev;
|
||||
|
@ -160,7 +160,7 @@ static inline EXCEPTION_FRAME *EXC_pop_frame( EXCEPTION_FRAME *frame )
|
|||
return frame->Prev;
|
||||
|
||||
#else
|
||||
CURRENT()->except = frame->Prev;
|
||||
NtCurrentTeb()->except = frame->Prev;
|
||||
return frame->Prev;
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -305,6 +305,6 @@ void WINAPI REGS_FUNC(RELAY_CallFrom32Regs)( CONTEXT *context )
|
|||
|
||||
#else /* __i386__ */
|
||||
|
||||
REGS_ENTRYPOINT(RELAY_CallFrom32Regs) { }
|
||||
void WINAPI REGS_FUNC(RELAY_CallFrom32Regs)( CONTEXT *context ) { }
|
||||
|
||||
#endif /* __i386__ */
|
||||
|
|
|
@ -373,7 +373,12 @@ FARPROC SNOOP_GetProcAddress(HMODULE hmod,LPCSTR name,DWORD ordinal,FARPROC orig
|
|||
return origfun;
|
||||
}
|
||||
|
||||
REGS_ENTRYPOINT(SNOOP_Entry) { }
|
||||
REGS_ENTRYPOINT(SNOOP_Return) { }
|
||||
void WINAPI REGS_FUNC(SNOOP_Entry)( CONTEXT *context )
|
||||
{
|
||||
}
|
||||
|
||||
void WINAPI REGS_FUNC(SNOOP_Return)( CONTEXT *context )
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* !__i386__ */
|
||||
|
|
Loading…
Reference in New Issue