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
bc95bfd3
Commit
bc95bfd3
authored
Nov 18, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Cast-qual warnings fix.
parent
8831a79e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
edit.c
dlls/user32/edit.c
+3
-2
No files found.
dlls/user32/edit.c
View file @
bc95bfd3
...
...
@@ -5014,11 +5014,12 @@ static void EDIT_WM_SetFont(EDITSTATE *es, HFONT font, BOOL redraw)
*/
static
void
EDIT_WM_SetText
(
EDITSTATE
*
es
,
LPCWSTR
text
,
BOOL
unicode
)
{
LPWSTR
textW
=
NULL
;
if
(
!
unicode
&&
text
)
{
LPCSTR
textA
=
(
LPCSTR
)
text
;
INT
countW
=
MultiByteToWideChar
(
CP_ACP
,
0
,
textA
,
-
1
,
NULL
,
0
);
LPWSTR
textW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
countW
*
sizeof
(
WCHAR
));
textW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
countW
*
sizeof
(
WCHAR
));
if
(
textW
)
MultiByteToWideChar
(
CP_ACP
,
0
,
textA
,
-
1
,
textW
,
countW
);
text
=
textW
;
...
...
@@ -5035,7 +5036,7 @@ static void EDIT_WM_SetText(EDITSTATE *es, LPCWSTR text, BOOL unicode)
TRACE
(
"%s
\n
"
,
debugstr_w
(
text
));
EDIT_EM_ReplaceSel
(
es
,
FALSE
,
text
,
FALSE
,
FALSE
);
if
(
!
unicode
)
HeapFree
(
GetProcessHeap
(),
0
,
(
LPWSTR
)
text
);
HeapFree
(
GetProcessHeap
(),
0
,
textW
);
}
else
{
...
...
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