Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6c4082df
Commit
6c4082df
authored
May 18, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Added fast W->A mapping for WM_CHAR and related messages.
parent
dd442faa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
winproc.c
dlls/user/winproc.c
+16
-15
No files found.
dlls/user/winproc.c
View file @
6c4082df
...
...
@@ -992,21 +992,6 @@ static INT WINPROC_MapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM
{
switch
(
msg
)
{
case
WM_CHARTOITEM
:
case
WM_MENUCHAR
:
case
WM_CHAR
:
case
WM_DEADCHAR
:
case
WM_SYSCHAR
:
case
WM_SYSDEADCHAR
:
case
EM_SETPASSWORDCHAR
:
{
WCHAR
wch
=
LOWORD
(
*
pwparam
);
BYTE
ch
;
WideCharToMultiByte
(
CP_ACP
,
0
,
&
wch
,
1
,
(
LPSTR
)
&
ch
,
1
,
NULL
,
NULL
);
*
pwparam
=
MAKEWPARAM
(
ch
,
HIWORD
(
*
pwparam
)
);
}
return
0
;
case
WM_IME_CHAR
:
{
WCHAR
wch
=
LOWORD
(
*
pwparam
);
...
...
@@ -3007,6 +2992,22 @@ static LRESULT WINPROC_CallProc32WTo32A( WNDPROC func, HWND hwnd, UINT msg, WPAR
}
break
;
case
WM_CHARTOITEM
:
case
WM_MENUCHAR
:
case
WM_CHAR
:
case
WM_DEADCHAR
:
case
WM_SYSCHAR
:
case
WM_SYSDEADCHAR
:
case
EM_SETPASSWORDCHAR
:
{
WCHAR
wch
=
LOWORD
(
wParam
);
BYTE
ch
;
RtlUnicodeToMultiByteN
(
(
LPSTR
)
&
ch
,
1
,
NULL
,
&
wch
,
sizeof
(
WCHAR
)
);
wParam
=
MAKEWPARAM
(
ch
,
HIWORD
(
wParam
)
);
ret
=
WINPROC_CallWndProc
(
func
,
hwnd
,
msg
,
wParam
,
lParam
);
}
break
;
default:
if
((
unmap
=
WINPROC_MapMsg32WTo32A
(
hwnd
,
msg
,
&
wParam
,
&
lParam
))
==
-
1
)
{
ERR_
(
msg
)(
"Message translation failed. (msg=%s,wp=%08x,lp=%08lx)
\n
"
,
...
...
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