Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
62de4b98
Commit
62de4b98
authored
25 years ago
by
Marcus Meissner
Committed by
Alexandre Julliard
25 years ago
Browse files
Options
Downloads
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
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
win32/console.c
+19
-3
19 additions, 3 deletions
win32/console.c
with
19 additions
and
3 deletions
win32/console.c
+
19
−
3
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment