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
62de4b98
Commit
62de4b98
authored
May 08, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
May 08, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore ESC[%dc reports generated by 8bit control codes.
Open console even if we already have one in the process.
parent
acfae0c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
console.c
win32/console.c
+19
-3
No files found.
win32/console.c
View file @
62de4b98
...
...
@@ -215,7 +215,9 @@ CONSOLE_string_to_IR( HANDLE hConsoleInput,unsigned char *buf,int len) {
j
=
k
+
3
;
}
break
;
case
'c'
:
j
=
k
;
break
;
}
if
(
scancode
)
{
ir
.
Event
.
KeyEvent
.
wVirtualScanCode
=
scancode
;
...
...
@@ -545,17 +547,31 @@ BOOL WINAPI AllocConsole(VOID)
struct
open_console_request
req
;
struct
open_console_reply
reply
;
HANDLE
hIn
,
hOut
,
hErr
;
DWORD
ret
;
TRACE
(
console
,
"()
\n
"
);
CLIENT_SendRequest
(
REQ_ALLOC_CONSOLE
,
-
1
,
0
);
if
(
CLIENT_WaitReply
(
NULL
,
NULL
,
0
)
!=
ERROR_SUCCESS
)
return
FALSE
;
ret
=
CLIENT_WaitReply
(
NULL
,
NULL
,
0
);
if
(
ret
!=
ERROR_SUCCESS
)
{
/* Hmm, error returned by server when we already have an
* opened console. however, we might have inherited it(?)
* and our handles are wrong? puzzling -MM 990330
*/
if
(
ret
!=
ERROR_ACCESS_DENIED
)
{
ERR
(
console
,
" failed to allocate console: %ld
\n
"
,
ret
);
return
FALSE
;
}
}
req
.
output
=
0
;
req
.
access
=
GENERIC_READ
|
GENERIC_WRITE
|
SYNCHRONIZE
;
req
.
inherit
=
FALSE
;
CLIENT_SendRequest
(
REQ_OPEN_CONSOLE
,
-
1
,
1
,
&
req
,
sizeof
(
req
)
);
if
(
CLIENT_WaitSimpleReply
(
&
reply
,
sizeof
(
reply
),
NULL
)
!=
ERROR_SUCCESS
)
ret
=
CLIENT_WaitSimpleReply
(
&
reply
,
sizeof
(
reply
),
NULL
);
if
(
ret
!=
ERROR_SUCCESS
)
{
/* FIXME: free console */
ERR
(
console
,
" open console error %ld
\n
"
,
ret
);
return
FALSE
;
}
hIn
=
reply
.
handle
;
...
...
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