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
1c0122d1
Commit
1c0122d1
authored
Feb 29, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Feb 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Don't assume that strlenW of a constant string can be determined at compile time.
Use sizeof instead to calculate the size of wszKeyName in FilterMapper2_CreateCategory.
parent
8d2af8e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
filtermapper.c
dlls/quartz/filtermapper.c
+3
-1
No files found.
dlls/quartz/filtermapper.c
View file @
1c0122d1
...
...
@@ -41,6 +41,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
quartz
);
#define ARRAYSIZE(array) (sizeof(array)/sizeof((array)[0]))
/* Unexposed IAMFilterData interface */
typedef
struct
IAMFilterData
IAMFilterData
;
...
...
@@ -311,7 +313,7 @@ static HRESULT WINAPI FilterMapper2_CreateCategory(
{
LPWSTR
wClsidAMCat
=
NULL
;
LPWSTR
wClsidCategory
=
NULL
;
WCHAR
wszKeyName
[
strlenW
(
wszClsidSlash
)
+
strlenW
(
wszSlashInstance
)
+
(
CHARS_IN_GUID
-
1
)
*
2
+
1
];
WCHAR
wszKeyName
[
ARRAYSIZE
(
wszClsidSlash
)
-
1
+
ARRAYSIZE
(
wszSlashInstance
)
-
1
+
(
CHARS_IN_GUID
-
1
)
*
2
+
1
];
HKEY
hKey
=
NULL
;
LONG
lRet
;
HRESULT
hr
;
...
...
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