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
9edcd1c1
Commit
9edcd1c1
authored
Aug 18, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fixed access to the extra arguments of setjmp3.
parent
909accf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
except.c
dlls/msvcrt/except.c
+9
-9
No files found.
dlls/msvcrt/except.c
View file @
9edcd1c1
...
...
@@ -315,7 +315,7 @@ int CDECL __regs_MSVCRT__setjmp(struct MSVCRT___JUMP_BUFFER *jmp)
* _setjmp3 (MSVCRT.@)
*/
DEFINE_SETJMP_ENTRYPOINT
(
MSVCRT__setjmp3
);
int
CDECL
__regs_MSVCRT__setjmp3
(
struct
MSVCRT___JUMP_BUFFER
*
jmp
,
int
nb_args
)
int
CDECL
__regs_MSVCRT__setjmp3
(
struct
MSVCRT___JUMP_BUFFER
*
jmp
,
int
nb_args
,
...
)
{
jmp
->
Cookie
=
MSVCRT_JMP_MAGIC
;
jmp
->
UnwindFunc
=
0
;
...
...
@@ -326,16 +326,16 @@ int CDECL __regs_MSVCRT__setjmp3(struct MSVCRT___JUMP_BUFFER *jmp, int nb_args)
}
else
{
void
**
args
=
((
void
**
)
jmp
->
Esp
)
+
2
;
int
i
;
va_list
args
;
if
(
nb_args
>
0
)
jmp
->
UnwindFunc
=
(
unsigned
long
)
*
args
++
;
if
(
nb_args
>
1
)
jmp
->
TryLevel
=
(
unsigned
long
)
*
args
++
;
va_start
(
args
,
nb_args
);
if
(
nb_args
>
0
)
jmp
->
UnwindFunc
=
va_arg
(
args
,
unsigned
long
);
if
(
nb_args
>
1
)
jmp
->
TryLevel
=
va_arg
(
args
,
unsigned
long
);
else
jmp
->
TryLevel
=
((
MSVCRT_EXCEPTION_FRAME
*
)
jmp
->
Registration
)
->
trylevel
;
if
(
nb_args
>
2
)
{
size_t
size
=
(
nb_args
-
2
)
*
sizeof
(
DWORD
);
memcpy
(
jmp
->
UnwindData
,
args
,
min
(
size
,
sizeof
(
jmp
->
UnwindData
)
));
}
for
(
i
=
0
;
i
<
6
&&
i
<
nb_args
-
2
;
i
++
)
jmp
->
UnwindData
[
i
]
=
va_arg
(
args
,
unsigned
long
);
va_end
(
args
);
}
TRACE
(
"buf=%p ebx=%08lx esi=%08lx edi=%08lx ebp=%08lx esp=%08lx eip=%08lx frame=%08lx
\n
"
,
...
...
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