Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
de3bc7d5
Commit
de3bc7d5
authored
Jan 06, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
krnl386: Use NtContinue to restore the full context.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=56152
parent
9fa27def
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
kernel16_private.h
dlls/krnl386.exe16/kernel16_private.h
+5
-7
No files found.
dlls/krnl386.exe16/kernel16_private.h
View file @
de3bc7d5
...
...
@@ -335,17 +335,15 @@ static inline DWORD stack32_pop( CONTEXT *context )
__ASM_CFI(".cfi_rel_offset %ebp,0\n\t") \
"movl %esp,%ebp\n\t" \
__ASM_CFI(".cfi_def_cfa_register %ebp\n\t") \
"leal -(0x2cc+4)(%esp),%esp\n\t"
/* sizeof(CONTEXT) + space for %eax */
\
"movl %eax,-4(%ebp)\n\t" \
"leal -0x2cc(%esp),%esp\n\t"
/* sizeof(CONTEXT) */
\
"pushl %esp\n\t"
/* context */
\
"call " __ASM_STDCALL("RtlCaptureContext",4) "\n\t" \
"movl -4(%ebp),%eax\n\t" \
"movl %eax,0xb0(%esp)\n\t"
/* context->Eax */
\
"movl %esp,%esi\n\t" \
"pushl %esp\n\t"
/* context */
\
"call " __ASM_STDCALL("__regs_" #name,4) "\n\t" \
"pushl
%esp\n\t"
/* context */
\
"pushl
$-2\n\t"
/* GetCurrentThread()
*/
\
"call " __ASM_STDCALL("Nt
SetContextThread",8) "\n\t"
\
"pushl
$0\n\t"
/* alertable */
\
"pushl
%esi\n\t"
/* context
*/
\
"call " __ASM_STDCALL("Nt
Continue",8) "\n\t"
\
"ret" )
/* fake ret to make copy protections happy */
#endif
/* __WINE_KERNEL16_PRIVATE_H */
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