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
cfa6f09d
Commit
cfa6f09d
authored
May 11, 2002
by
Jukka Heinonen
Committed by
Alexandre Julliard
May 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When using MapSL, 32-bit addresses are no longer truncated into 16-bit
addresses.
parent
e929a20e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
instr.c
memory/instr.c
+3
-3
No files found.
memory/instr.c
View file @
cfa6f09d
...
...
@@ -44,7 +44,7 @@ inline static void *make_ptr( CONTEXT86 *context, DWORD seg, DWORD off, int long
if
(
ISV86
(
context
))
return
PTR_REAL_TO_LIN
(
seg
,
off
);
if
(
IS_SELECTOR_SYSTEM
(
seg
))
return
(
void
*
)
off
;
if
(
!
long_addr
)
off
=
LOWORD
(
off
);
return
MapSL
(
MAKESEGPTR
(
seg
,
off
)
)
;
return
MapSL
(
MAKESEGPTR
(
seg
,
0
)
)
+
off
;
}
inline
static
void
*
get_stack
(
CONTEXT86
*
context
)
...
...
@@ -54,7 +54,7 @@ inline static void *get_stack( CONTEXT86 *context )
if
(
IS_SELECTOR_SYSTEM
(
context
->
SegSs
))
return
(
void
*
)
context
->
Esp
;
if
(
IS_SELECTOR_32BIT
(
context
->
SegSs
))
return
MapSL
(
MAKESEGPTR
(
context
->
SegSs
,
context
->
Esp
)
)
;
return
MapSL
(
MAKESEGPTR
(
context
->
SegSs
,
0
)
)
+
context
->
Esp
;
return
MapSL
(
MAKESEGPTR
(
context
->
SegSs
,
LOWORD
(
context
->
Esp
)
)
);
}
...
...
@@ -249,7 +249,7 @@ static BYTE *INSTR_GetOperandAddr( CONTEXT86 *context, BYTE *instr,
if
(
IS_SELECTOR_SYSTEM
(
seg
))
return
(
BYTE
*
)(
base
+
(
index
<<
ss
));
if
(((
seg
&
7
)
!=
7
)
||
IS_SELECTOR_FREE
(
seg
))
return
NULL
;
if
(
wine_ldt_copy
.
limit
[
seg
>>
3
]
<
(
base
+
(
index
<<
ss
)))
return
NULL
;
return
MapSL
(
MAKESEGPTR
(
seg
,
(
base
+
(
index
<<
ss
)))
);
return
MapSL
(
MAKESEGPTR
(
seg
,
0
)
)
+
base
+
(
index
<<
ss
);
#undef GET_VAL
}
...
...
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