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
c9e19500
Commit
c9e19500
authored
Oct 24, 1998
by
Patrik Stridvall
Committed by
Alexandre Julliard
Oct 24, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile fix for Solaris.
parent
99f51106
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
dpmi.c
msdos/dpmi.c
+2
-3
No files found.
msdos/dpmi.c
View file @
c9e19500
...
@@ -193,6 +193,8 @@ int DPMI_CallRMProc( CONTEXT *context, LPWORD stack, int args, int iret )
...
@@ -193,6 +193,8 @@ int DPMI_CallRMProc( CONTEXT *context, LPWORD stack, int args, int iret )
TDB
*
pTask
=
(
TDB
*
)
GlobalLock16
(
GetCurrentTask
()
);
TDB
*
pTask
=
(
TDB
*
)
GlobalLock16
(
GetCurrentTask
()
);
NE_MODULE
*
pModule
=
pTask
?
NE_GetPtr
(
pTask
->
hModule
)
:
NULL
;
NE_MODULE
*
pModule
=
pTask
?
NE_GetPtr
(
pTask
->
hModule
)
:
NULL
;
int
alloc
=
0
;
int
alloc
=
0
;
WORD
sel
;
SEGPTR
seg_addr
;
GlobalUnlock16
(
GetCurrentTask
()
);
GlobalUnlock16
(
GetCurrentTask
()
);
...
@@ -251,9 +253,6 @@ int DPMI_CallRMProc( CONTEXT *context, LPWORD stack, int args, int iret )
...
@@ -251,9 +253,6 @@ int DPMI_CallRMProc( CONTEXT *context, LPWORD stack, int args, int iret )
TRACE
(
int31
,
"returned from real-mode call
\n
"
);
TRACE
(
int31
,
"returned from real-mode call
\n
"
);
if
(
alloc
)
DOSMEM_FreeBlock
(
pModule
->
self
,
addr
);
if
(
alloc
)
DOSMEM_FreeBlock
(
pModule
->
self
,
addr
);
#else
#else
/* FIXME: I copied this from CallRMProcFar (below), did I do it right? */
/* Murphy's law says I didn't */
addr
=
CTX_SEG_OFF_TO_LIN
(
context
,
CS_reg
(
context
),
IP_reg
(
context
));
addr
=
CTX_SEG_OFF_TO_LIN
(
context
,
CS_reg
(
context
),
IP_reg
(
context
));
sel
=
SELECTOR_AllocBlock
(
addr
,
0x10000
,
SEGMENT_CODE
,
FALSE
,
FALSE
);
sel
=
SELECTOR_AllocBlock
(
addr
,
0x10000
,
SEGMENT_CODE
,
FALSE
,
FALSE
);
seg_addr
=
PTR_SEG_OFF_TO_SEGPTR
(
sel
,
0
);
seg_addr
=
PTR_SEG_OFF_TO_SEGPTR
(
sel
,
0
);
...
...
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