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
258d1ff8
Commit
258d1ff8
authored
Dec 04, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Merge a helper function.
parent
efff59a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
enum_jobs.c
dlls/qmgr/enum_jobs.c
+7
-13
No files found.
dlls/qmgr/enum_jobs.c
View file @
258d1ff8
...
...
@@ -37,17 +37,6 @@ static inline EnumBackgroundCopyJobsImpl *impl_from_IEnumBackgroundCopyJobs(IEnu
return
CONTAINING_RECORD
(
iface
,
EnumBackgroundCopyJobsImpl
,
IEnumBackgroundCopyJobs_iface
);
}
static
void
EnumBackgroundCopyJobsDestructor
(
EnumBackgroundCopyJobsImpl
*
This
)
{
ULONG
i
;
for
(
i
=
0
;
i
<
This
->
numJobs
;
i
++
)
IBackgroundCopyJob_Release
(
This
->
jobs
[
i
]);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
jobs
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
static
HRESULT
WINAPI
BITS_IEnumBackgroundCopyJobs_QueryInterface
(
IEnumBackgroundCopyJobs
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -78,11 +67,16 @@ static ULONG WINAPI BITS_IEnumBackgroundCopyJobs_Release(IEnumBackgroundCopyJobs
{
EnumBackgroundCopyJobsImpl
*
This
=
impl_from_IEnumBackgroundCopyJobs
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
i
;
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
EnumBackgroundCopyJobsDestructor
(
This
);
if
(
ref
==
0
)
{
for
(
i
=
0
;
i
<
This
->
numJobs
;
i
++
)
IBackgroundCopyJob_Release
(
This
->
jobs
[
i
]);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
jobs
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
}
...
...
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