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
f14d522f
Commit
f14d522f
authored
Oct 20, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vwin32.vxd: Avoid using the CONTEXT86 type.
parent
2f96fcc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
vwin32.c
dlls/vwin32.vxd/vwin32.c
+8
-8
No files found.
dlls/vwin32.vxd/vwin32.c
View file @
f14d522f
...
...
@@ -58,20 +58,20 @@ typedef struct tagMID {
extern
void
__wine_call_int_handler
(
CONTEXT
*
context
,
BYTE
intnum
);
/* Pop a DWORD from the 32-bit stack */
static
inline
DWORD
stack32_pop
(
CONTEXT
86
*
context
)
static
inline
DWORD
stack32_pop
(
CONTEXT
*
context
)
{
DWORD
ret
=
*
(
DWORD
*
)
context
->
Esp
;
context
->
Esp
+=
sizeof
(
DWORD
);
return
ret
;
}
static
void
DIOCRegs_2_CONTEXT
(
DIOC_REGISTERS
*
pIn
,
CONTEXT
86
*
pCxt
)
static
void
DIOCRegs_2_CONTEXT
(
DIOC_REGISTERS
*
pIn
,
CONTEXT
*
pCxt
)
{
memset
(
pCxt
,
0
,
sizeof
(
*
pCxt
)
);
/* Note: segment registers == 0 means that CTX_SEG_OFF_TO_LIN
will interpret 32-bit register contents as linear pointers */
pCxt
->
ContextFlags
=
CONTEXT
86_INTEGER
|
CONTEXT86
_CONTROL
;
pCxt
->
ContextFlags
=
CONTEXT
_INTEGER
|
CONTEXT
_CONTROL
;
pCxt
->
Eax
=
pIn
->
reg_EAX
;
pCxt
->
Ebx
=
pIn
->
reg_EBX
;
pCxt
->
Ecx
=
pIn
->
reg_ECX
;
...
...
@@ -79,12 +79,12 @@ static void DIOCRegs_2_CONTEXT( DIOC_REGISTERS *pIn, CONTEXT86 *pCxt )
pCxt
->
Esi
=
pIn
->
reg_ESI
;
pCxt
->
Edi
=
pIn
->
reg_EDI
;
/* FIXME: Only partial CONTEXT
86
_CONTROL */
/* FIXME: Only partial CONTEXT_CONTROL */
pCxt
->
EFlags
=
pIn
->
reg_Flags
&
~
0x00020000
;
/* clear vm86 mode */
}
static
void
CONTEXT_2_DIOCRegs
(
CONTEXT
86
*
pCxt
,
DIOC_REGISTERS
*
pOut
)
static
void
CONTEXT_2_DIOCRegs
(
CONTEXT
*
pCxt
,
DIOC_REGISTERS
*
pOut
)
{
memset
(
pOut
,
0
,
sizeof
(
DIOC_REGISTERS
)
);
...
...
@@ -95,7 +95,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
86
_CONTROL */
/* FIXME: Only partial CONTEXT_CONTROL */
pOut
->
reg_Flags
=
pCxt
->
EFlags
;
}
...
...
@@ -117,7 +117,7 @@ BOOL WINAPI VWIN32_DeviceIoControl(DWORD dwIoControlCode,
case
0x29
:
/* Int 0x31 call, call it VWIN_DIOC_INT31 ? */
case
VWIN32_DIOC_DOS_DRIVEINFO
:
{
CONTEXT
86
cxt
;
CONTEXT
cxt
;
DIOC_REGISTERS
*
pIn
=
lpvInBuffer
;
DIOC_REGISTERS
*
pOut
=
lpvOutBuffer
;
BYTE
intnum
=
0
;
...
...
@@ -178,7 +178,7 @@ BOOL WINAPI VWIN32_DeviceIoControl(DWORD dwIoControlCode,
* Programming Secrets". Parameters from experimentation on real Win98.
*
*/
DWORD
WINAPI
VWIN32_VxDCall
(
DWORD
service
,
CONTEXT
86
*
context
)
DWORD
WINAPI
VWIN32_VxDCall
(
DWORD
service
,
CONTEXT
*
context
)
{
switch
(
LOWORD
(
service
)
)
{
...
...
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