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
3161fc51
Commit
3161fc51
authored
Oct 20, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Avoid using the CONTEXT86 type.
parent
085d3983
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
instr.c
dlls/ntoskrnl.exe/instr.c
+4
-4
No files found.
dlls/ntoskrnl.exe/instr.c
View file @
3161fc51
...
...
@@ -59,7 +59,7 @@ static inline struct idtr get_idtr(void)
}
/* store an operand into a register */
static
void
store_reg
(
CONTEXT
86
*
context
,
BYTE
regmodrm
,
const
BYTE
*
addr
,
int
long_op
)
static
void
store_reg
(
CONTEXT
*
context
,
BYTE
regmodrm
,
const
BYTE
*
addr
,
int
long_op
)
{
switch
((
regmodrm
>>
3
)
&
7
)
{
...
...
@@ -103,7 +103,7 @@ static void store_reg( CONTEXT86 *context, BYTE regmodrm, const BYTE *addr, int
*
* Return the address of an instruction operand (from the mod/rm byte).
*/
static
BYTE
*
INSTR_GetOperandAddr
(
CONTEXT
86
*
context
,
BYTE
*
instr
,
static
BYTE
*
INSTR_GetOperandAddr
(
CONTEXT
*
context
,
BYTE
*
instr
,
int
long_addr
,
int
segprefix
,
int
*
len
)
{
int
mod
,
rm
,
base
=
0
,
index
=
0
,
ss
=
0
,
seg
=
0
,
off
;
...
...
@@ -258,7 +258,7 @@ static BYTE *INSTR_GetOperandAddr( CONTEXT86 *context, BYTE *instr,
* Emulate a privileged instruction.
* Returns exception continuation status.
*/
static
DWORD
emulate_instruction
(
EXCEPTION_RECORD
*
rec
,
CONTEXT
86
*
context
)
static
DWORD
emulate_instruction
(
EXCEPTION_RECORD
*
rec
,
CONTEXT
*
context
)
{
int
prefix
,
segprefix
,
prefixlen
,
len
,
long_op
,
long_addr
;
BYTE
*
instr
;
...
...
@@ -432,7 +432,7 @@ static DWORD emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT86 *context )
LONG
CALLBACK
vectored_handler
(
EXCEPTION_POINTERS
*
ptrs
)
{
EXCEPTION_RECORD
*
record
=
ptrs
->
ExceptionRecord
;
CONTEXT
86
*
context
=
ptrs
->
ContextRecord
;
CONTEXT
*
context
=
ptrs
->
ContextRecord
;
if
((
record
->
ExceptionCode
==
EXCEPTION_ACCESS_VIOLATION
||
record
->
ExceptionCode
==
EXCEPTION_PRIV_INSTRUCTION
))
...
...
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