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
cd37906f
Commit
cd37906f
authored
Jun 27, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 27, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ReadConsoleA: use ir as pointer to (req+1).
parent
4c2a0770
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
console.c
win32/console.c
+5
-4
No files found.
win32/console.c
View file @
cd37906f
...
...
@@ -785,7 +785,7 @@ BOOL WINAPI ReadConsoleA( HANDLE hConsoleInput,
{
int
charsread
=
0
;
LPSTR
xbuf
=
(
LPSTR
)
lpBuffer
;
INPUT_RECORD
ir
;
LP
INPUT_RECORD
ir
;
TRACE
(
"(%d,%p,%ld,%p,%p)
\n
"
,
hConsoleInput
,
lpBuffer
,
nNumberOfCharsToRead
,
...
...
@@ -803,11 +803,12 @@ BOOL WINAPI ReadConsoleA( HANDLE hConsoleInput,
req
->
flush
=
1
;
if
(
server_call
(
REQ_READ_CONSOLE_INPUT
))
return
FALSE
;
if
(
!
req
->
read
)
break
;
if
(
!
ir
.
Event
.
KeyEvent
.
bKeyDown
)
ir
=
(
LPINPUT_RECORD
)(
req
+
1
);
if
(
!
ir
->
Event
.
KeyEvent
.
bKeyDown
)
continue
;
if
(
ir
.
EventType
!=
KEY_EVENT
)
if
(
ir
->
EventType
!=
KEY_EVENT
)
continue
;
*
xbuf
++
=
ir
.
Event
.
KeyEvent
.
uChar
.
AsciiChar
;
*
xbuf
++
=
ir
->
Event
.
KeyEvent
.
uChar
.
AsciiChar
;
charsread
++
;
}
if
(
lpNumberOfCharsRead
)
...
...
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