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
a63e0fac
Commit
a63e0fac
authored
Aug 30, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Remove old bare-console code.
parent
efecd9c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
console.c
dlls/kernel32/console.c
+1
-16
No files found.
dlls/kernel32/console.c
View file @
a63e0fac
...
...
@@ -332,20 +332,7 @@ HANDLE WINAPI OpenConsoleW(LPCWSTR name, DWORD access, BOOL inherit, DWORD creat
SERVER_END_REQ
;
if
(
ret
)
ret
=
console_handle_map
(
ret
);
else
{
/* likely, we're not attached to wineconsole
* let's try to return a handle to the unix-console
*/
int
fd
=
open
(
"/dev/tty"
,
output
?
O_WRONLY
:
O_RDONLY
);
ret
=
INVALID_HANDLE_VALUE
;
if
(
fd
!=
-
1
)
{
DWORD
access
=
(
output
?
GENERIC_WRITE
:
GENERIC_READ
)
|
SYNCHRONIZE
;
wine_server_fd_to_handle
(
fd
,
access
,
inherit
?
OBJ_INHERIT
:
0
,
&
ret
);
close
(
fd
);
}
}
return
ret
;
}
...
...
@@ -1417,8 +1404,6 @@ BOOL WINAPI AllocConsole(void)
CloseHandle
(
handle_in
);
return
FALSE
;
}
/* happens when we're running on a Unix console */
if
(
handle_in
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
handle_in
);
/* invalidate local copy of input event handle */
console_wait_event
=
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