Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b46cf438
Commit
b46cf438
authored
Aug 12, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add a ret to DEFINE_REGS_ENTRYPOINT to make copy protections happy.
parent
2df20cb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
kernel_private.h
dlls/kernel32/kernel_private.h
+2
-1
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+2
-1
No files found.
dlls/kernel32/kernel_private.h
View file @
b46cf438
...
...
@@ -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
dlls/ntdll/ntdll_misc.h
View file @
b46cf438
...
...
@@ -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, \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment