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
4f7dc46c
Commit
4f7dc46c
authored
Nov 22, 1998
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 22, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LB_GETTEXT: Handle passed NULL buffer.
parent
21777c59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
listbox.c
controls/listbox.c
+5
-4
No files found.
controls/listbox.c
View file @
4f7dc46c
...
...
@@ -636,12 +636,13 @@ static LRESULT LISTBOX_GetText( WND *wnd, LB_DESCR *descr, INT32 index,
if
((
index
<
0
)
||
(
index
>=
descr
->
nb_items
))
return
LB_ERR
;
if
(
HAS_STRINGS
(
descr
))
{
if
(
!
buffer
)
return
strlen
(
descr
->
items
[
index
].
str
);
lstrcpy32A
(
buffer
,
descr
->
items
[
index
].
str
);
return
strlen
(
buffer
);
}
else
{
memcpy
(
buffer
,
&
descr
->
items
[
index
].
data
,
sizeof
(
DWORD
)
);
}
else
{
if
(
buffer
)
*
((
LPDWORD
)
buffer
)
=*
(
LPDWORD
)(
&
descr
->
items
[
index
].
data
);
return
sizeof
(
DWORD
);
}
}
...
...
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