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
1082779d
Commit
1082779d
authored
Jan 29, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Check HeapAlloc results (coverity).
parent
67478652
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
listview.c
programs/regedit/listview.c
+6
-1
No files found.
programs/regedit/listview.c
View file @
1082779d
...
...
@@ -533,7 +533,12 @@ BOOL RefreshListView(HWND hwndLV, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR highli
max_val_size
++
;
valName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
max_val_name_len
*
sizeof
(
WCHAR
));
if
(
!
valName
)
goto
done
;
valBuf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
max_val_size
);
if
(
!
valBuf
)
goto
done
;
if
(
RegQueryValueExW
(
hKey
,
NULL
,
NULL
,
&
valType
,
valBuf
,
&
valSize
)
==
ERROR_FILE_NOT_FOUND
)
{
AddEntryToList
(
hwndLV
,
NULL
,
REG_SZ
,
NULL
,
0
,
!
highlightValue
);
}
...
...
@@ -545,7 +550,7 @@ BOOL RefreshListView(HWND hwndLV, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR highli
errCode
=
RegEnumValueW
(
hKey
,
index
,
valName
,
&
valNameLen
,
NULL
,
&
valType
,
valBuf
,
&
valSize
);
if
(
errCode
!=
ERROR_SUCCESS
)
goto
done
;
valBuf
[
valSize
]
=
0
;
if
(
valName
&&
highlightValue
&&
!
lstrcmpW
(
valName
,
highlightValue
))
if
(
highlightValue
&&
!
lstrcmpW
(
valName
,
highlightValue
))
bSelected
=
TRUE
;
AddEntryToList
(
hwndLV
,
valName
[
0
]
?
valName
:
NULL
,
valType
,
valBuf
,
valSize
,
bSelected
);
}
...
...
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