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
23db2636
Commit
23db2636
authored
Dec 01, 2007
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Dec 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Fix buffer sizes.
parent
1dc28c90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
api.c
dlls/avifil32/api.c
+3
-3
No files found.
dlls/avifil32/api.c
View file @
23db2636
...
...
@@ -1065,9 +1065,9 @@ HRESULT WINAPI AVIBuildFilterW(LPWSTR szFilter, LONG cbFilter, BOOL fSaving)
HeapFree
(
GetProcessHeap
(),
0
,
lp
);
return
AVIERR_ERROR
;
}
for
(
n
=
0
;
RegEnumKeyW
(
hKey
,
n
,
szFileExt
,
sizeof
(
szFileExt
))
==
S_OK
;
n
++
)
{
for
(
n
=
0
;
RegEnumKeyW
(
hKey
,
n
,
szFileExt
,
sizeof
(
szFileExt
)
/
sizeof
(
szFileExt
[
0
])
)
==
S_OK
;
n
++
)
{
/* get CLSID to extension */
size
=
sizeof
(
szValue
)
/
sizeof
(
szValue
[
0
])
;
size
=
sizeof
(
szValue
);
if
(
RegQueryValueW
(
hKey
,
szFileExt
,
szValue
,
&
size
)
!=
S_OK
)
break
;
...
...
@@ -1116,7 +1116,7 @@ HRESULT WINAPI AVIBuildFilterW(LPWSTR szFilter, LONG cbFilter, BOOL fSaving)
for
(
n
=
0
;
n
<=
count
;
n
++
)
{
/* first the description */
if
(
n
!=
0
)
{
size
=
sizeof
(
szValue
)
/
sizeof
(
szValue
[
0
])
;
size
=
sizeof
(
szValue
);
if
(
RegQueryValueW
(
hKey
,
lp
[
n
].
szClsid
,
szValue
,
&
size
)
==
S_OK
)
{
size
=
lstrlenW
(
szValue
);
lstrcpynW
(
szFilter
,
szValue
,
cbFilter
);
...
...
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