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
5b47e9b3
Commit
5b47e9b3
authored
Sep 29, 2013
by
Jeff Klein
Committed by
Alexandre Julliard
Oct 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Correct MMDevPropStore_GetAt.
parent
37caf788
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
devenum.c
dlls/mmdevapi/devenum.c
+6
-6
No files found.
dlls/mmdevapi/devenum.c
View file @
5b47e9b3
...
...
@@ -1343,10 +1343,10 @@ static HRESULT WINAPI MMDevPropStore_GetCount(IPropertyStore *iface, DWORD *npro
*
nprops
=
0
;
do
{
DWORD
len
=
sizeof
(
buffer
)
/
sizeof
(
*
buffer
);
if
(
RegEnum
KeyEx
W
(
propkey
,
i
,
buffer
,
&
len
,
NULL
,
NULL
,
NULL
,
NULL
)
!=
ERROR_SUCCESS
)
if
(
RegEnum
Value
W
(
propkey
,
i
,
buffer
,
&
len
,
NULL
,
NULL
,
NULL
,
NULL
)
!=
ERROR_SUCCESS
)
break
;
i
++
;
}
while
(
0
);
}
while
(
1
);
RegCloseKey
(
propkey
);
TRACE
(
"Returning %i
\n
"
,
i
);
*
nprops
=
i
;
...
...
@@ -1369,16 +1369,16 @@ static HRESULT WINAPI MMDevPropStore_GetAt(IPropertyStore *iface, DWORD prop, PR
if
(
FAILED
(
hr
))
return
hr
;
if
(
RegEnum
KeyEx
W
(
propkey
,
prop
,
buffer
,
&
len
,
NULL
,
NULL
,
NULL
,
NULL
)
!=
ERROR_SUCCESS
||
len
<=
40
)
if
(
RegEnum
Value
W
(
propkey
,
prop
,
buffer
,
&
len
,
NULL
,
NULL
,
NULL
,
NULL
)
!=
ERROR_SUCCESS
||
len
<=
39
)
{
WARN
(
"GetAt %u failed
\n
"
,
prop
);
return
E_INVALIDARG
;
}
RegCloseKey
(
propkey
);
buffer
[
3
9
]
=
0
;
buffer
[
3
8
]
=
0
;
CLSIDFromString
(
buffer
,
&
key
->
fmtid
);
key
->
pid
=
atoiW
(
&
buffer
[
40
]);
key
->
pid
=
atoiW
(
&
buffer
[
39
]);
return
S_OK
;
}
...
...
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