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
0fa6dad0
Commit
0fa6dad0
authored
Jul 15, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Jul 15, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some CONTEXT86 vs. CONTEXT mismatches.
parent
5e59b1a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
winnt.h
include/winnt.h
+5
-5
device.c
win32/device.c
+6
-6
No files found.
include/winnt.h
View file @
0fa6dad0
...
...
@@ -172,20 +172,20 @@ typedef struct _CONTEXT86
DWORD
SegSs
;
}
CONTEXT86
;
#define CONTEXT_X86 0x00010000
#define CONTEXT_i386 CONTEXT_X86
#define CONTEXT_i486 CONTEXT_X86
#define CONTEXT86_CONTROL (CONTEXT_i386 | 0x0001)
/* SS:SP, CS:IP, FLAGS, BP */
#define CONTEXT86_INTEGER (CONTEXT_i386 | 0x0002)
/* AX, BX, CX, DX, SI, DI */
#define CONTEXT86_SEGMENTS (CONTEXT_i386 | 0x0004)
/* DS, ES, FS, GS */
#define CONTEXT86_FLOATING_POINT (CONTEXT_i386 | 0x0008L)
/* 387 state */
#define CONTEXT86_DEBUG_REGISTERS (CONTEXT_i386 | 0x0010L)
/* DB 0-3,6,7 */
#define CONTEXT86_FULL (CONTEXT
_CONTROL | CONTEXT_INTEGER | CONTEXT
_SEGMENTS)
#define CONTEXT86_FULL (CONTEXT
86_CONTROL | CONTEXT86_INTEGER | CONTEXT86
_SEGMENTS)
/* i386 context definitions */
#ifdef __i386__
#define CONTEXT_X86 0x00010000
#define CONTEXT_i386 CONTEXT_X86
#define CONTEXT_i486 CONTEXT_X86
#define CONTEXT_CONTROL CONTEXT86_CONTROL
#define CONTEXT_INTEGER CONTEXT86_INTEGER
#define CONTEXT_SEGMENTS CONTEXT86_SEGMENTS
...
...
win32/device.c
View file @
0fa6dad0
...
...
@@ -723,7 +723,7 @@ static void win32apieq_2_CONTEXT(struct win32apireq *pIn,CONTEXT86 *pCxt)
{
memset
(
pCxt
,
0
,
sizeof
(
*
pCxt
));
pCxt
->
ContextFlags
=
CONTEXT
_INTEGER
|
CONTEXT
_CONTROL
;
pCxt
->
ContextFlags
=
CONTEXT
86_INTEGER
|
CONTEXT86
_CONTROL
;
pCxt
->
Eax
=
pIn
->
ar_eax
;
pCxt
->
Ebx
=
pIn
->
ar_ebx
;
pCxt
->
Ecx
=
pIn
->
ar_ecx
;
...
...
@@ -731,7 +731,7 @@ static void win32apieq_2_CONTEXT(struct win32apireq *pIn,CONTEXT86 *pCxt)
pCxt
->
Esi
=
pIn
->
ar_esi
;
pCxt
->
Edi
=
pIn
->
ar_edi
;
/* FIXME: Only partial CONTEXT_CONTROL */
/* FIXME: Only partial CONTEXT
86
_CONTROL */
pCxt
->
Ebp
=
pIn
->
ar_ebp
;
/* FIXME: pIn->ar_proid ignored */
...
...
@@ -750,7 +750,7 @@ static void CONTEXT_2_win32apieq(CONTEXT86 *pCxt,struct win32apireq *pOut)
pOut
->
ar_esi
=
pCxt
->
Esi
;
pOut
->
ar_edi
=
pCxt
->
Edi
;
/* FIXME: Only partial CONTEXT_CONTROL */
/* FIXME: Only partial CONTEXT
86
_CONTROL */
pOut
->
ar_ebp
=
pCxt
->
Ebp
;
/* FIXME: pOut->ar_proid ignored */
...
...
@@ -830,7 +830,7 @@ static void DIOCRegs_2_CONTEXT( DIOC_REGISTERS *pIn, CONTEXT86 *pCxt )
/* Note: segment registers == 0 means that CTX_SEG_OFF_TO_LIN
will interpret 32-bit register contents as linear pointers */
pCxt
->
ContextFlags
=
CONTEXT
_INTEGER
|
CONTEXT
_CONTROL
;
pCxt
->
ContextFlags
=
CONTEXT
86_INTEGER
|
CONTEXT86
_CONTROL
;
pCxt
->
Eax
=
pIn
->
reg_EAX
;
pCxt
->
Ebx
=
pIn
->
reg_EBX
;
pCxt
->
Ecx
=
pIn
->
reg_ECX
;
...
...
@@ -838,7 +838,7 @@ static void DIOCRegs_2_CONTEXT( DIOC_REGISTERS *pIn, CONTEXT86 *pCxt )
pCxt
->
Esi
=
pIn
->
reg_ESI
;
pCxt
->
Edi
=
pIn
->
reg_EDI
;
/* FIXME: Only partial CONTEXT_CONTROL */
/* FIXME: Only partial CONTEXT
86
_CONTROL */
pCxt
->
EFlags
=
pIn
->
reg_Flags
;
}
...
...
@@ -853,7 +853,7 @@ static void CONTEXT_2_DIOCRegs( CONTEXT86 *pCxt, DIOC_REGISTERS *pOut )
pOut
->
reg_ESI
=
pCxt
->
Esi
;
pOut
->
reg_EDI
=
pCxt
->
Edi
;
/* FIXME: Only partial CONTEXT_CONTROL */
/* FIXME: Only partial CONTEXT
86
_CONTROL */
pOut
->
reg_Flags
=
pCxt
->
EFlags
;
}
...
...
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