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
94c6e3af
Commit
94c6e3af
authored
Jun 30, 2015
by
Bernhard Übelacker
Committed by
Alexandre Julliard
Jul 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleview: Call RegEnumValueW with value and val_count parameters.
parent
cf6477ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
tree.c
programs/oleview/tree.c
+7
-4
No files found.
programs/oleview/tree.c
View file @
94c6e3af
...
...
@@ -500,10 +500,12 @@ static void AddComponentCategories(void)
{
TVINSERTSTRUCTW
tvis
;
HKEY
hKey
,
hCurKey
;
WCHAR
keyName
[
MAX_LOAD_STRING
];
WCHAR
valName
[
MAX_LOAD_STRING
];
WCHAR
buffer
[
MAX_LOAD_STRING
];
LONG
lenBuffer
;
DWORD
lenBufferHlp
;
DWORD
lenValName
;
int
i
=-
1
;
U
(
tvis
).
item
.
mask
=
TVIF_TEXT
|
TVIF_PARAM
|
TVIF_CHILDREN
;
...
...
@@ -520,23 +522,24 @@ static void AddComponentCategories(void)
{
i
++
;
if
(
RegEnumKeyW
(
hKey
,
i
,
valName
,
sizeof
(
valName
)
/
sizeof
(
val
Name
[
0
]))
!=
ERROR_SUCCESS
)
break
;
if
(
RegEnumKeyW
(
hKey
,
i
,
keyName
,
sizeof
(
keyName
)
/
sizeof
(
key
Name
[
0
]))
!=
ERROR_SUCCESS
)
break
;
if
(
RegOpenKeyW
(
hKey
,
val
Name
,
&
hCurKey
)
!=
ERROR_SUCCESS
)
continue
;
if
(
RegOpenKeyW
(
hKey
,
key
Name
,
&
hCurKey
)
!=
ERROR_SUCCESS
)
continue
;
lenBuffer
=
sizeof
(
WCHAR
[
MAX_LOAD_STRING
]);
lenBufferHlp
=
sizeof
(
WCHAR
[
MAX_LOAD_STRING
]);
lenValName
=
sizeof
(
WCHAR
[
MAX_LOAD_STRING
]);
if
(
RegQueryValueW
(
hCurKey
,
NULL
,
buffer
,
&
lenBuffer
)
==
ERROR_SUCCESS
&&
*
buffer
)
U
(
tvis
).
item
.
pszText
=
buffer
;
else
if
(
RegEnumValueW
(
hCurKey
,
0
,
NULL
,
NULL
,
NULL
,
NULL
,
else
if
(
RegEnumValueW
(
hCurKey
,
0
,
valName
,
&
lenValName
,
NULL
,
NULL
,
(
LPBYTE
)
buffer
,
&
lenBufferHlp
)
==
ERROR_SUCCESS
&&
*
buffer
)
U
(
tvis
).
item
.
pszText
=
buffer
;
else
continue
;
RegCloseKey
(
hCurKey
);
U
(
tvis
).
item
.
lParam
=
CreateITEM_INFO
(
REGTOP
,
valName
,
val
Name
,
NULL
);
U
(
tvis
).
item
.
lParam
=
CreateITEM_INFO
(
REGTOP
,
keyName
,
key
Name
,
NULL
);
SendMessageW
(
globals
.
hTree
,
TVM_INSERTITEMW
,
0
,
(
LPARAM
)
&
tvis
);
}
...
...
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