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
3eea9a61
Commit
3eea9a61
authored
Oct 10, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Use FIELD_OFFSET instead of pointer cast.
parent
e764e613
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ne_segment.c
dlls/kernel32/ne_segment.c
+2
-2
No files found.
dlls/kernel32/ne_segment.c
View file @
3eea9a61
...
...
@@ -694,7 +694,7 @@ static BOOL NE_InitDLL( NE_MODULE *pModule )
context
.
SegGs
=
wine_get_gs
();
context
.
SegCs
=
SEL
(
pSegTable
[
SELECTOROF
(
pModule
->
ne_csip
)
-
1
].
hSeg
);
context
.
Eip
=
OFFSETOF
(
pModule
->
ne_csip
);
context
.
Ebp
=
OFFSETOF
(
NtCurrentTeb
()
->
WOW32Reserved
)
+
(
WORD
)
&
((
STACK16FRAME
*
)
0
)
->
bp
;
context
.
Ebp
=
OFFSETOF
(
NtCurrentTeb
()
->
WOW32Reserved
)
+
FIELD_OFFSET
(
STACK16FRAME
,
bp
)
;
pModule
->
ne_csip
=
0
;
/* Don't initialize it twice */
TRACE_
(
dll
)(
"Calling LibMain for %.*s, cs:ip=%04x:%04x ds=%04x di=%04x cx=%04x
\n
"
,
...
...
@@ -799,7 +799,7 @@ static void NE_CallDllEntryPoint( NE_MODULE *pModule, DWORD dwReason )
context
.
SegGs
=
wine_get_gs
();
context
.
SegCs
=
HIWORD
(
entryPoint
);
context
.
Eip
=
LOWORD
(
entryPoint
);
context
.
Ebp
=
OFFSETOF
(
NtCurrentTeb
()
->
WOW32Reserved
)
+
(
WORD
)
&
((
STACK16FRAME
*
)
0
)
->
bp
;
context
.
Ebp
=
OFFSETOF
(
NtCurrentTeb
()
->
WOW32Reserved
)
+
FIELD_OFFSET
(
STACK16FRAME
,
bp
)
;
args
[
7
]
=
HIWORD
(
dwReason
);
args
[
6
]
=
LOWORD
(
dwReason
);
...
...
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