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
b64c6270
Commit
b64c6270
authored
Mar 30, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed rounding bug in the stack info calculation when we don't have
pthread_getattr_np.
parent
a4e902cb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pthread.c
loader/pthread.c
+2
-2
No files found.
loader/pthread.c
View file @
b64c6270
...
@@ -72,8 +72,8 @@ void wine_pthread_init_thread( struct wine_pthread_thread_info *info )
...
@@ -72,8 +72,8 @@ void wine_pthread_init_thread( struct wine_pthread_thread_info *info )
#else
#else
/* assume that the stack allocation is page aligned */
/* assume that the stack allocation is page aligned */
char
dummy
;
char
dummy
;
size_t
page_
mask
=
getpagesize
()
-
1
;
size_t
page_
size
=
getpagesize
()
;
char
*
stack_top
=
(
char
*
)((
unsigned
long
)
(
&
dummy
+
page_mask
)
&
~
page_mask
)
;
char
*
stack_top
=
(
char
*
)((
unsigned
long
)
&
dummy
&
~
(
page_size
-
1
))
+
page_size
;
info
->
stack_base
=
stack_top
-
info
->
stack_size
;
info
->
stack_base
=
stack_top
-
info
->
stack_size
;
#endif
#endif
}
}
...
...
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