Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
cfa6f09d
Commit
cfa6f09d
authored
22 years ago
by
Jukka Heinonen
Committed by
Alexandre Julliard
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
When using MapSL, 32-bit addresses are no longer truncated into 16-bit
addresses.
parent
e929a20e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
memory/instr.c
+3
-3
3 additions, 3 deletions
memory/instr.c
with
3 additions
and
3 deletions
memory/instr.c
+
3
−
3
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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment