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
21777c59
Commit
21777c59
authored
Nov 22, 1998
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 22, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CB_GETTEXT: Use lpBuffer instead of lpText for LB_GETTEXT32, handle 0
byte NULL buffer.
parent
9dc32562
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
combo.c
controls/combo.c
+3
-1
No files found.
controls/combo.c
View file @
21777c59
...
@@ -1001,14 +1001,16 @@ static LRESULT COMBO_GetText( LPHEADCOMBO lphc, UINT32 N, LPSTR lpText)
...
@@ -1001,14 +1001,16 @@ static LRESULT COMBO_GetText( LPHEADCOMBO lphc, UINT32 N, LPSTR lpText)
if
(
lpBuffer
)
if
(
lpBuffer
)
{
{
INT32
n
=
SendMessage32A
(
lphc
->
hWndLBox
,
LB_GETTEXT32
,
INT32
n
=
SendMessage32A
(
lphc
->
hWndLBox
,
LB_GETTEXT32
,
(
WPARAM32
)
idx
,
(
LPARAM
)
lp
Text
);
(
WPARAM32
)
idx
,
(
LPARAM
)
lp
Buffer
);
/* truncate if buffer is too short */
/* truncate if buffer is too short */
if
(
length
>=
N
)
if
(
length
>=
N
)
{
{
if
(
N
&&
lpText
)
{
if
(
n
!=
LB_ERR
)
memcpy
(
lpText
,
lpBuffer
,
(
N
>
n
)
?
n
+
1
:
N
-
1
);
if
(
n
!=
LB_ERR
)
memcpy
(
lpText
,
lpBuffer
,
(
N
>
n
)
?
n
+
1
:
N
-
1
);
lpText
[
N
-
1
]
=
'\0'
;
lpText
[
N
-
1
]
=
'\0'
;
}
HeapFree
(
GetProcessHeap
(),
0
,
lpBuffer
);
HeapFree
(
GetProcessHeap
(),
0
,
lpBuffer
);
}
}
return
(
LRESULT
)
n
;
return
(
LRESULT
)
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