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
72d82701
Commit
72d82701
authored
Jul 10, 2002
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jul 10, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CBUpdateEdit: LB_GETTEXTLEN returns LB_ERR on error, not 0.
parent
a80a8142
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
combo.c
controls/combo.c
+5
-2
No files found.
controls/combo.c
View file @
72d82701
...
...
@@ -771,6 +771,8 @@ static void CBPaintText(
if
(
(
id
=
SendMessageW
(
lphc
->
hWndLBox
,
LB_GETCURSEL
,
0
,
0
)
)
!=
LB_ERR
)
{
size
=
SendMessageW
(
lphc
->
hWndLBox
,
LB_GETTEXTLEN
,
id
,
0
);
if
(
size
==
LB_ERR
)
FIXME
(
"LB_ERR probably not handled yet
\n
"
);
if
(
(
pText
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
size
+
1
)
*
sizeof
(
WCHAR
)))
)
{
/* size from LB_GETTEXTLEN may be too large, from LB_GETTEXT is accurate */
...
...
@@ -1113,7 +1115,7 @@ static void CBUpdateEdit( LPHEADCOMBO lphc , INT index )
if
(
index
>=
0
)
/* got an entry */
{
length
=
SendMessageW
(
lphc
->
hWndLBox
,
LB_GETTEXTLEN
,
(
WPARAM
)
index
,
0
);
if
(
length
)
if
(
length
!=
LB_ERR
)
{
if
(
(
pText
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
length
+
1
)
*
sizeof
(
WCHAR
)))
)
{
...
...
@@ -1538,7 +1540,8 @@ static LRESULT COMBO_GetText( LPHEADCOMBO lphc, INT N, LPARAM lParam, BOOL unico
INT
n
=
0
;
INT
length
=
SendMessageW
(
lphc
->
hWndLBox
,
LB_GETTEXTLEN
,
(
WPARAM
)
idx
,
0
);
if
(
length
==
LB_ERR
)
FIXME
(
"LB_ERR probably not handled yet
\n
"
);
if
(
unicode
)
{
LPWSTR
lpBuffer
,
lpText
=
(
LPWSTR
)
lParam
;
...
...
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