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
2fa0c66c
Commit
2fa0c66c
authored
Nov 25, 2000
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always generate unicode CHAR messages.
parent
bd14f66e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
message.c
windows/message.c
+6
-8
No files found.
windows/message.c
View file @
2fa0c66c
...
...
@@ -2187,7 +2187,7 @@ static BOOL MSG_DoTranslateMessage( UINT message, HWND hwnd,
WPARAM
wParam
,
LPARAM
lParam
)
{
static
int
dead_char
;
BYTE
wp
[
2
];
WCHAR
wp
[
2
];
if
(
message
!=
WM_MOUSEMOVE
&&
message
!=
WM_TIMER
)
TRACE
(
"(%s, %04X, %08lX)
\n
"
,
...
...
@@ -2201,9 +2201,8 @@ static BOOL MSG_DoTranslateMessage( UINT message, HWND hwnd,
TRACE_
(
key
)(
"Translating key %s (%04x), scancode %02x
\n
"
,
SPY_GetVKeyName
(
wParam
),
wParam
,
LOBYTE
(
HIWORD
(
lParam
)));
/* FIXME : should handle ToAscii yielding 2 */
switch
(
ToAscii
(
wParam
,
HIWORD
(
lParam
),
QueueKeyStateTable
,(
LPWORD
)
wp
,
0
))
/* FIXME : should handle ToUnicode yielding 2 */
switch
(
ToUnicode
(
wParam
,
HIWORD
(
lParam
),
QueueKeyStateTable
,
wp
,
2
,
0
))
{
case
1
:
message
=
(
message
==
WM_KEYDOWN
)
?
WM_CHAR
:
WM_SYSCHAR
;
...
...
@@ -2230,15 +2229,14 @@ static BOOL MSG_DoTranslateMessage( UINT message, HWND hwnd,
dead_char
=
0
;
}
TRACE_
(
key
)(
"1 -> PostMessage(%s)
\n
"
,
SPY_GetMsgName
(
message
));
PostMessage
16
(
hwnd
,
message
,
wp
[
0
],
lParam
);
PostMessage
W
(
hwnd
,
message
,
wp
[
0
],
lParam
);
return
TRUE
;
case
-
1
:
message
=
(
message
==
WM_KEYDOWN
)
?
WM_DEADCHAR
:
WM_SYSDEADCHAR
;
dead_char
=
wp
[
0
];
TRACE_
(
key
)(
"-1 -> PostMessage(%s)
\n
"
,
SPY_GetMsgName
(
message
));
PostMessage16
(
hwnd
,
message
,
wp
[
0
],
lParam
);
TRACE_
(
key
)(
"-1 -> PostMessage(%s)
\n
"
,
SPY_GetMsgName
(
message
));
PostMessageW
(
hwnd
,
message
,
wp
[
0
],
lParam
);
return
TRUE
;
}
return
FALSE
;
...
...
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