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
ca2902f3
Commit
ca2902f3
authored
Oct 07, 2003
by
Jukka Heinonen
Committed by
Alexandre Julliard
Oct 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct pointer when accessing real mode interrupt vectors under
Win16.
parent
e0faa866
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
interrupts.c
dlls/winedos/interrupts.c
+23
-2
No files found.
dlls/winedos/interrupts.c
View file @
ca2902f3
...
...
@@ -72,6 +72,27 @@ static const INTPROC DOSVM_VectorsBuiltin[] =
/**********************************************************************
* DOSVM_GetRMVector
*
* Return pointer to real mode interrupt vector. These are not at fixed
* location because those Win16 programs that do not use any real mode
* code have protected NULL pointer catching block at low linear memory
* and interrupt vectors have been moved to another location.
*/
static
FARPROC16
*
DOSVM_GetRMVector
(
BYTE
intnum
)
{
LDT_ENTRY
entry
;
FARPROC16
proc
;
proc
=
GetProcAddress16
(
GetModuleHandle16
(
"KERNEL"
),
(
LPCSTR
)(
ULONG_PTR
)
183
);
wine_ldt_get_entry
(
LOWORD
(
proc
),
&
entry
);
return
(
FARPROC16
*
)
wine_ldt_get_base
(
&
entry
)
+
intnum
;
}
/**********************************************************************
* DOSVM_IsIRQ
*
* Return TRUE if interrupt is an IRQ.
...
...
@@ -517,7 +538,7 @@ void DOSVM_HardwareInterruptRM( CONTEXT86 *context, BYTE intnum )
*/
FARPROC16
DOSVM_GetRMHandler
(
BYTE
intnum
)
{
return
((
FARPROC16
*
)
0
)[
intnum
]
;
return
*
DOSVM_GetRMVector
(
intnum
)
;
}
...
...
@@ -530,7 +551,7 @@ void DOSVM_SetRMHandler( BYTE intnum, FARPROC16 handler )
{
TRACE
(
"Set real mode interrupt vector %02x <- %04x:%04x
\n
"
,
intnum
,
HIWORD
(
handler
),
LOWORD
(
handler
)
);
((
FARPROC16
*
)
0
)[
intnum
]
=
handler
;
*
DOSVM_GetRMVector
(
intnum
)
=
handler
;
}
...
...
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