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
91b278b8
Commit
91b278b8
authored
May 20, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Added fast A->W mapping for WM_GETTEXT and WM_ASKCBFORNAME.
parent
3e195d43
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
winproc.c
dlls/user/winproc.c
+19
-0
No files found.
dlls/user/winproc.c
View file @
91b278b8
...
@@ -2689,6 +2689,25 @@ LRESULT WINPROC_CallProcAtoW( winproc_callback_t callback, HWND hwnd, UINT msg,
...
@@ -2689,6 +2689,25 @@ LRESULT WINPROC_CallProcAtoW( winproc_callback_t callback, HWND hwnd, UINT msg,
}
}
break
;
break
;
case
WM_GETTEXT
:
case
WM_ASKCBFORMATNAME
:
{
WCHAR
*
ptr
,
buffer
[
512
];
LPSTR
str
=
(
LPSTR
)
lParam
;
DWORD
len
=
wParam
*
sizeof
(
WCHAR
);
if
(
!
(
ptr
=
get_buffer
(
buffer
,
sizeof
(
buffer
),
len
)))
break
;
ret
=
callback
(
hwnd
,
msg
,
wParam
,
(
LPARAM
)
ptr
,
result
,
arg
);
if
(
*
result
&&
wParam
)
{
RtlUnicodeToMultiByteN
(
str
,
wParam
-
1
,
&
len
,
ptr
,
strlenW
(
ptr
)
*
sizeof
(
WCHAR
)
);
str
[
len
]
=
0
;
*
result
=
len
;
}
free_buffer
(
buffer
,
ptr
);
}
break
;
default:
default:
if
(
(
unmap
=
WINPROC_MapMsg32ATo32W
(
hwnd
,
msg
,
&
wParam
,
&
lParam
))
==
-
1
)
{
if
(
(
unmap
=
WINPROC_MapMsg32ATo32W
(
hwnd
,
msg
,
&
wParam
,
&
lParam
))
==
-
1
)
{
ERR_
(
msg
)(
"Message translation failed. (msg=%s,wp=%08x,lp=%08lx)
\n
"
,
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