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
2d8f7268
Commit
2d8f7268
authored
Jun 24, 2008
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Do not ignore current position in IEnumRegFiltersImpl_Next.
parent
c782cdad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
enumregfilters.c
dlls/quartz/enumregfilters.c
+4
-3
No files found.
dlls/quartz/enumregfilters.c
View file @
2d8f7268
...
...
@@ -152,7 +152,7 @@ static HRESULT WINAPI IEnumRegFiltersImpl_Next(IEnumRegFilters * iface, ULONG cF
for
(
i
=
0
;
i
<
cFetched
;
i
++
)
{
/* The string in the REGFILTER structure must be allocated in the same block as the REGFILTER structure itself */
ppRegFilter
[
i
]
=
CoTaskMemAlloc
(
sizeof
(
REGFILTER
)
+
(
strlenW
(
This
->
RegFilters
[
i
].
Name
)
+
1
)
*
sizeof
(
WCHAR
));
ppRegFilter
[
i
]
=
CoTaskMemAlloc
(
sizeof
(
REGFILTER
)
+
(
strlenW
(
This
->
RegFilters
[
This
->
uIndex
+
i
].
Name
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
ppRegFilter
[
i
])
{
while
(
i
)
...
...
@@ -162,9 +162,10 @@ static HRESULT WINAPI IEnumRegFiltersImpl_Next(IEnumRegFilters * iface, ULONG cF
}
return
E_OUTOFMEMORY
;
}
ppRegFilter
[
i
]
->
Clsid
=
This
->
RegFilters
[
i
].
Clsid
;
ppRegFilter
[
i
]
->
Clsid
=
This
->
RegFilters
[
This
->
uIndex
+
i
].
Clsid
;
ppRegFilter
[
i
]
->
Name
=
(
WCHAR
*
)((
char
*
)
ppRegFilter
[
i
]
+
sizeof
(
REGFILTER
));
CopyMemory
(
ppRegFilter
[
i
]
->
Name
,
This
->
RegFilters
[
i
].
Name
,
(
strlenW
(
This
->
RegFilters
[
i
].
Name
)
+
1
)
*
sizeof
(
WCHAR
));
CopyMemory
(
ppRegFilter
[
i
]
->
Name
,
This
->
RegFilters
[
This
->
uIndex
+
i
].
Name
,
(
strlenW
(
This
->
RegFilters
[
This
->
uIndex
+
i
].
Name
)
+
1
)
*
sizeof
(
WCHAR
));
}
This
->
uIndex
+=
cFetched
;
...
...
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