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
a9200b24
Commit
a9200b24
authored
Apr 07, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdmo: Array parameter is passed to function as pointer so loses size information.
parent
0f4f6fac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dmoreg.c
dlls/msdmo/dmoreg.c
+4
-2
No files found.
dlls/msdmo/dmoreg.c
View file @
a9200b24
...
...
@@ -291,8 +291,9 @@ lend:
*
* Get DMP Name from the registry
*/
HRESULT
WINAPI
DMOGetName
(
REFCLSID
clsidDMO
,
WCHAR
szName
[
80
])
HRESULT
WINAPI
DMOGetName
(
REFCLSID
clsidDMO
,
WCHAR
szName
[])
{
#define NAME_SIZE 80
/* Size of szName[] */
WCHAR
szguid
[
64
];
HRESULT
hres
;
HKEY
hrkey
=
0
;
...
...
@@ -311,7 +312,7 @@ HRESULT WINAPI DMOGetName(REFCLSID clsidDMO, WCHAR szName[80])
if
(
ERROR_SUCCESS
!=
hres
)
goto
lend
;
count
=
sizeof
(
szName
)
;
count
=
NAME_SIZE
;
hres
=
RegQueryValueExW
(
hkey
,
NULL
,
NULL
,
NULL
,
(
LPBYTE
)
szName
,
&
count
);
...
...
@@ -323,6 +324,7 @@ lend:
RegCloseKey
(
hkey
);
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