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
a95b4886
Commit
a95b4886
authored
Apr 10, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Apr 10, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear invalid selectors also in CallTo16 relay code.
parent
26ad2412
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
instr.c
miscemu/instr.c
+13
-9
No files found.
miscemu/instr.c
View file @
a95b4886
...
...
@@ -36,6 +36,7 @@
/* For invalid registers fixup */
extern
DWORD
CallFrom16_Start
,
CallFrom16_End
;
extern
DWORD
CALLTO16_Start
,
CALLTO16_End
;
/***********************************************************************
...
...
@@ -51,15 +52,18 @@ extern DWORD CallFrom16_Start,CallFrom16_End;
*/
static
BOOL
INSTR_ReplaceSelector
(
SIGCONTEXT
*
context
,
WORD
*
sel
)
{
if
(
IS_SELECTOR_SYSTEM
(
CS_sig
(
context
))
&&
(
EIP_sig
(
context
)
>=
(
DWORD
)
&
CallFrom16_Start
)
&&
(
EIP_sig
(
context
)
<
(
DWORD
)
&
CallFrom16_End
))
{
/* Saved selector may have become invalid when the relay code */
/* tries to restore it. We simply clear it. */
*
sel
=
0
;
return
TRUE
;
}
if
(
IS_SELECTOR_SYSTEM
(
CS_sig
(
context
))
)
if
(
(
EIP_sig
(
context
)
>=
(
DWORD
)
&
CallFrom16_Start
&&
EIP_sig
(
context
)
<
(
DWORD
)
&
CallFrom16_End
)
||
(
EIP_sig
(
context
)
>=
(
DWORD
)
&
CALLTO16_Start
&&
EIP_sig
(
context
)
<
(
DWORD
)
&
CALLTO16_End
)
)
{
/* Saved selector may have become invalid when the relay code */
/* tries to restore it. We simply clear it. */
*
sel
=
0
;
return
TRUE
;
}
if
(
*
sel
==
0x40
)
{
static
WORD
sys_timer
=
0
;
...
...
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