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
693c531f
Commit
693c531f
authored
Nov 13, 2000
by
Ove Kaaven
Committed by
Alexandre Julliard
Nov 13, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When a Win16 app sets a selector base to low DOS memory, make sure low
DOS memory is mapped first.
parent
f39a69a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
dpmi.c
msdos/dpmi.c
+9
-6
No files found.
msdos/dpmi.c
View file @
693c531f
...
...
@@ -289,7 +289,7 @@ static void DPMI_CallRMCBProc( CONTEXT86 *context, RMCB *rmcb, WORD flag )
es
=
ctx
.
SegEs
;
edi
=
ctx
.
Edi
;
}
SELECTOR_FreeBlock
(
ss
,
1
);
FreeSelector16
(
ss
);
INT_GetRealModeContext
((
REALMODECALL
*
)
PTR_SEG_OFF_TO_LIN
(
es
,
edi
),
context
);
#else
ERR
(
"RMCBs only implemented for i386
\n
"
);
...
...
@@ -619,12 +619,12 @@ static void StartPM( CONTEXT86 *context, LPDOSTASK lpDosTask )
/* in the current state of affairs, we won't ever actually return here... */
/* we should have int21/ah=4c do it someday, though... */
SELECTOR_FreeBlock
(
psp
->
environment
,
1
);
FreeSelector16
(
psp
->
environment
);
psp
->
environment
=
env_seg
;
SELECTOR_FreeBlock
(
es
,
1
);
if
(
ds
!=
ss
)
SELECTOR_FreeBlock
(
ds
,
1
);
SELECTOR_FreeBlock
(
ss
,
1
);
SELECTOR_FreeBlock
(
cs
,
1
);
FreeSelector16
(
es
);
if
(
ds
!=
ss
)
FreeSelector16
(
ds
);
FreeSelector16
(
ss
);
FreeSelector16
(
cs
);
}
/* DPMI Raw Mode Switch handler */
...
...
@@ -823,6 +823,9 @@ void WINAPI INT_Int31Handler( CONTEXT86 *context )
BX_reg
(
context
),
W32S_APP2WINE
(
MAKELONG
(
DX_reg
(
context
),
CX_reg
(
context
)),
offset
));
dw
=
W32S_APP2WINE
(
MAKELONG
(
DX_reg
(
context
),
CX_reg
(
context
)),
offset
);
if
(
dw
<
0x10000
)
/* app wants to access lower 64K of DOS memory, map it in now */
DOSMEM_Init
(
TRUE
);
SetSelectorBase
(
BX_reg
(
context
),
dw
);
break
;
...
...
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