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
b367a6e6
Commit
b367a6e6
authored
May 19, 2003
by
Huw Davies
Committed by
Alexandre Julliard
May 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We can't use RtlCreateUnicodeStringFromAsciiz for WM_SETTEXT as the
resulting unicode string may be greater than 0xffff bytes.
parent
83d92d3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
winproc.c
windows/winproc.c
+7
-7
No files found.
windows/winproc.c
View file @
b367a6e6
...
...
@@ -594,13 +594,13 @@ INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM *plpara
case
LB_DIR
:
case
LB_ADDFILE
:
case
EM_REPLACESEL
:
{
UNICODE_STRING
usBuffer
;
if
(
!*
plparam
)
return
0
;
RtlCreateUnicodeStringFromAsciiz
(
&
usBuffer
,(
LPCSTR
)
*
plparam
);
*
plparam
=
(
LPARAM
)
usBuffer
.
Buffer
;
return
(
*
plparam
?
1
:
-
1
);
}
{
DWORD
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LPCSTR
)
*
plparam
,
-
1
,
NULL
,
0
)
;
WCHAR
*
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
))
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LPCSTR
)
*
plparam
,
-
1
,
buf
,
len
);
*
plparam
=
(
LPARAM
)
buf
;
return
(
*
plparam
?
1
:
-
1
);
}
case
WM_GETTEXTLENGTH
:
case
CB_GETLBTEXTLEN
:
case
LB_GETTEXTLEN
:
...
...
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