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
6324670b
Commit
6324670b
authored
Apr 09, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdmo: Fix calculation of array size in bytes.
parent
1b24da3a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
dmoreg.c
dlls/msdmo/dmoreg.c
+2
-3
No files found.
dlls/msdmo/dmoreg.c
View file @
6324670b
...
@@ -293,11 +293,11 @@ lend:
...
@@ -293,11 +293,11 @@ lend:
*/
*/
HRESULT
WINAPI
DMOGetName
(
REFCLSID
clsidDMO
,
WCHAR
szName
[])
HRESULT
WINAPI
DMOGetName
(
REFCLSID
clsidDMO
,
WCHAR
szName
[])
{
{
#define NAME_SIZE 80
/* Size of szName[] */
WCHAR
szguid
[
64
];
WCHAR
szguid
[
64
];
HRESULT
hres
;
HRESULT
hres
;
HKEY
hrkey
=
0
;
HKEY
hrkey
=
0
;
HKEY
hkey
=
0
;
HKEY
hkey
=
0
;
static
const
INT
max_name_len
=
80
;
DWORD
count
;
DWORD
count
;
TRACE
(
"%s
\n
"
,
debugstr_guid
(
clsidDMO
));
TRACE
(
"%s
\n
"
,
debugstr_guid
(
clsidDMO
));
...
@@ -312,7 +312,7 @@ HRESULT WINAPI DMOGetName(REFCLSID clsidDMO, WCHAR szName[])
...
@@ -312,7 +312,7 @@ HRESULT WINAPI DMOGetName(REFCLSID clsidDMO, WCHAR szName[])
if
(
ERROR_SUCCESS
!=
hres
)
if
(
ERROR_SUCCESS
!=
hres
)
goto
lend
;
goto
lend
;
count
=
NAME_SIZE
;
count
=
max_name_len
*
sizeof
(
WCHAR
)
;
hres
=
RegQueryValueExW
(
hkey
,
NULL
,
NULL
,
NULL
,
hres
=
RegQueryValueExW
(
hkey
,
NULL
,
NULL
,
NULL
,
(
LPBYTE
)
szName
,
&
count
);
(
LPBYTE
)
szName
,
&
count
);
...
@@ -324,7 +324,6 @@ lend:
...
@@ -324,7 +324,6 @@ lend:
RegCloseKey
(
hkey
);
RegCloseKey
(
hkey
);
return
hres
;
return
hres
;
#undef NAME_SIZE
}
}
...
...
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