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
1da34891
Commit
1da34891
authored
Feb 14, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed WM_GETTEXTLENGTH handling.
parent
26146cdd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
defwnd.c
windows/defwnd.c
+16
-4
No files found.
windows/defwnd.c
View file @
1da34891
...
...
@@ -493,10 +493,6 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
case
WM_CTLCOLOR
:
return
(
LRESULT
)
DEFWND_ControlColor
(
(
HDC
)
wParam
,
HIWORD
(
lParam
)
);
case
WM_GETTEXTLENGTH
:
if
(
wndPtr
->
text
)
return
(
LRESULT
)
strlenW
(
wndPtr
->
text
);
return
0
;
case
WM_SETCURSOR
:
if
(
wndPtr
->
dwStyle
&
WS_CHILD
)
{
...
...
@@ -704,6 +700,12 @@ LRESULT WINAPI DefWindowProc16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam,
}
break
;
case
WM_GETTEXTLENGTH
:
if
(
wndPtr
->
text
)
result
=
WideCharToMultiByte
(
CP_ACP
,
0
,
wndPtr
->
text
,
strlenW
(
wndPtr
->
text
),
NULL
,
0
,
NULL
,
NULL
);
break
;
case
WM_GETTEXT
:
if
(
wParam
&&
wndPtr
->
text
)
{
...
...
@@ -774,6 +776,12 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam,
}
break
;
case
WM_GETTEXTLENGTH
:
if
(
wndPtr
->
text
)
result
=
WideCharToMultiByte
(
CP_ACP
,
0
,
wndPtr
->
text
,
strlenW
(
wndPtr
->
text
),
NULL
,
0
,
NULL
,
NULL
);
break
;
case
WM_GETTEXT
:
if
(
wParam
&&
wndPtr
->
text
)
{
...
...
@@ -892,6 +900,10 @@ LRESULT WINAPI DefWindowProcW(
}
break
;
case
WM_GETTEXTLENGTH
:
if
(
wndPtr
->
text
)
result
=
(
LRESULT
)
strlenW
(
wndPtr
->
text
);
break
;
case
WM_GETTEXT
:
if
(
wParam
&&
wndPtr
->
text
)
{
...
...
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