mirror of
https://github.com/reactos/wine.git
synced 2025-02-17 19:39:00 +00:00
ntdll: Add a ret to DEFINE_REGS_ENTRYPOINT to make copy protections happy.
This commit is contained in:
parent
2df20cb921
commit
b46cf438f8
@ -152,7 +152,8 @@ extern HANDLE get_BaseNamedObjects_handle(void);
|
||||
".byte 0x68\n\t" /* pushl $__regs_func */ \
|
||||
".long " __ASM_NAME("__regs_") #name "-.-11\n\t" \
|
||||
".byte 0x6a," #args "\n\t" /* pushl $args */ \
|
||||
"call " __ASM_NAME("__wine_call_from_32_regs"))
|
||||
"call " __ASM_NAME("__wine_call_from_32_regs") "\n\t" \
|
||||
"ret $(4*" #args ")" ) /* fake ret to make copy protections happy */
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -233,7 +233,8 @@ static inline struct ntdll_thread_regs *ntdll_get_thread_regs(void)
|
||||
".byte 0x68\n\t" /* pushl $__regs_func */ \
|
||||
".long " __ASM_NAME("__regs_") #name "-.-11\n\t" \
|
||||
".byte 0x6a," #args "\n\t" /* pushl $args */ \
|
||||
"call " __ASM_NAME("__wine_call_from_32_regs"))
|
||||
"call " __ASM_NAME("__wine_call_from_32_regs") "\n\t" \
|
||||
"ret $(4*" #args ")" ) /* fake ret to make copy protections happy */
|
||||
#elif defined(__x86_64__)
|
||||
#define DEFINE_REGS_ENTRYPOINT( name, args ) \
|
||||
__ASM_GLOBAL_FUNC( name, \
|
||||
|
Loading…
x
Reference in New Issue
Block a user