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
c6e16c3a
Commit
c6e16c3a
authored
Oct 11, 1998
by
Ove Kaaven
Committed by
Alexandre Julliard
Oct 11, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I think it's time to rethink the HFILE16_TO_HFILE32 strategy,
can't keep working around flaws in it like this (now stdio was getting closed when programs close handles >=5)
parent
32486cde
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
int21.c
msdos/int21.c
+7
-2
No files found.
msdos/int21.c
View file @
c6e16c3a
...
...
@@ -1078,7 +1078,7 @@ void WINAPI DOS3Call( CONTEXT *context )
DX_reg
(
context
)
));
int
res
;
TRACE
(
int21
,
"BUFFERED INPUT
\n
"
);
TRACE
(
int21
,
"BUFFERED INPUT
(size=%d)
\n
"
,
buffer
[
0
]
);
if
(
buffer
[
1
])
TRACE
(
int21
,
"Handle old chars in buffer!
\n
"
);
res
=
_lread16
(
0
,
buffer
+
2
,
buffer
[
0
]);
...
...
@@ -1347,8 +1347,13 @@ void WINAPI DOS3Call( CONTEXT *context )
case
0x3e
:
/* "CLOSE" - CLOSE FILE */
TRACE
(
int21
,
"CLOSE handle %d
\n
"
,
BX_reg
(
context
));
if
(
BX_reg
(
context
)
<
5
)
{
if
((
BX_reg
(
context
)
<
5
)
||
/* FIXME: need to improve on those handle conversion macros */
(
BX_reg
(
context
)
==
HFILE32_TO_HFILE16
(
GetStdHandle
(
STD_INPUT_HANDLE
)))
||
(
BX_reg
(
context
)
==
HFILE32_TO_HFILE16
(
GetStdHandle
(
STD_OUTPUT_HANDLE
)))
||
(
BX_reg
(
context
)
==
HFILE32_TO_HFILE16
(
GetStdHandle
(
STD_ERROR_HANDLE
))))
{
/* hack to make sure stdio isn't closed */
FIXME
(
int21
,
"stdio handle closed, need proper conversion
\n
"
);
DOS_ExtendedError
=
0x06
;
bSetDOSExtendedError
=
TRUE
;
}
else
...
...
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