Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
622a2404
Commit
622a2404
authored
Aug 04, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Return earlier on allocation failure (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
42cc080f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
listview.c
dlls/comctl32/listview.c
+8
-6
No files found.
dlls/comctl32/listview.c
View file @
622a2404
...
...
@@ -5863,13 +5863,15 @@ static BOOL LISTVIEW_EndEditLabelT(LISTVIEW_INFO *infoPtr, BOOL storeText, BOOL
{
DWORD
len
=
isW
?
GetWindowTextLengthW
(
infoPtr
->
hwndEdit
)
:
GetWindowTextLengthA
(
infoPtr
->
hwndEdit
);
if
(
len
)
if
(
len
++
)
{
if
((
pszText
=
Alloc
((
len
+
1
)
*
(
isW
?
sizeof
(
WCHAR
)
:
sizeof
(
CHAR
)))))
{
if
(
isW
)
GetWindowTextW
(
infoPtr
->
hwndEdit
,
pszText
,
len
+
1
);
else
GetWindowTextA
(
infoPtr
->
hwndEdit
,
(
CHAR
*
)
pszText
,
len
+
1
);
}
if
(
!
(
pszText
=
Alloc
(
len
*
(
isW
?
sizeof
(
WCHAR
)
:
sizeof
(
CHAR
)))))
return
FALSE
;
if
(
isW
)
GetWindowTextW
(
infoPtr
->
hwndEdit
,
pszText
,
len
);
else
GetWindowTextA
(
infoPtr
->
hwndEdit
,
(
CHAR
*
)
pszText
,
len
);
}
}
...
...
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