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
062f5330
Commit
062f5330
authored
Jun 11, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warning fix.
parent
41f99ba2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sysdeps.c
scheduler/sysdeps.c
+3
-3
No files found.
scheduler/sysdeps.c
View file @
062f5330
...
...
@@ -216,7 +216,7 @@ int SYSDEPS_CallOnStack( LPVOID stackTop, LPVOID stackLow,
void
SYSDEPS_SwitchToThreadStack
(
void
(
*
func
)(
void
)
)
{
DWORD
page_size
=
getpagesize
();
DWORD
cur_stack
=
(((
DWORD
)
&
func
)
+
(
page_size
-
1
))
&
~
(
page_size
-
1
);
void
*
cur_stack
=
(
void
*
)(((
ULONG_PTR
)
&
func
+
(
page_size
-
1
))
&
~
(
page_size
-
1
)
);
TEB
*
teb
=
NtCurrentTeb
();
LPVOID
stackTop
=
teb
->
stack_top
;
...
...
@@ -230,8 +230,8 @@ void SYSDEPS_SwitchToThreadStack( void (*func)(void) )
rl
.
rlim_cur
=
8
*
1024
*
1024
;
}
teb
->
stack_top
=
(
LPVOID
)
cur_stack
;
teb
->
stack_low
=
(
LPVOID
)(
cur_stack
-
rl
.
rlim_cur
)
;
teb
->
stack_top
=
cur_stack
;
teb
->
stack_low
=
(
char
*
)
cur_stack
-
rl
.
rlim_cur
;
SYSDEPS_CallOnStack
(
stackTop
,
stackLow
,
(
int
(
*
)(
void
*
))
func
,
NULL
);
...
...
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