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
022e3f53
Commit
022e3f53
authored
Dec 04, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Parameter cleanup for a helper function.
parent
a3fdfa22
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
enum_jobs.c
dlls/qmgr/enum_jobs.c
+3
-5
qmgr.c
dlls/qmgr/qmgr.c
+1
-1
qmgr.h
dlls/qmgr/qmgr.h
+2
-2
No files found.
dlls/qmgr/enum_jobs.c
View file @
022e3f53
...
@@ -163,15 +163,13 @@ static const IEnumBackgroundCopyJobsVtbl BITS_IEnumBackgroundCopyJobs_Vtbl =
...
@@ -163,15 +163,13 @@ static const IEnumBackgroundCopyJobsVtbl BITS_IEnumBackgroundCopyJobs_Vtbl =
BITS_IEnumBackgroundCopyJobs_GetCount
BITS_IEnumBackgroundCopyJobs_GetCount
};
};
HRESULT
EnumBackgroundCopyJobsConstructor
(
LPVOID
*
ppObj
,
HRESULT
enum_copy_job_create
(
BackgroundCopyManagerImpl
*
qmgr
,
IEnumBackgroundCopyJobs
**
enumjob
)
IBackgroundCopyManager
*
copyManager
)
{
{
BackgroundCopyManagerImpl
*
qmgr
=
(
BackgroundCopyManagerImpl
*
)
copyManager
;
EnumBackgroundCopyJobsImpl
*
This
;
EnumBackgroundCopyJobsImpl
*
This
;
BackgroundCopyJobImpl
*
job
;
BackgroundCopyJobImpl
*
job
;
ULONG
i
;
ULONG
i
;
TRACE
(
"%p, %p)
\n
"
,
ppObj
,
copyManager
);
TRACE
(
"%p, %p)
\n
"
,
qmgr
,
enumjob
);
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
*
This
);
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
*
This
);
if
(
!
This
)
if
(
!
This
)
...
@@ -208,6 +206,6 @@ HRESULT EnumBackgroundCopyJobsConstructor(LPVOID *ppObj,
...
@@ -208,6 +206,6 @@ HRESULT EnumBackgroundCopyJobsConstructor(LPVOID *ppObj,
}
}
LeaveCriticalSection
(
&
qmgr
->
cs
);
LeaveCriticalSection
(
&
qmgr
->
cs
);
*
ppObj
=
&
This
->
lpVtbl
;
*
enumjob
=
(
IEnumBackgroundCopyJobs
*
)
&
This
->
lpVtbl
;
return
S_OK
;
return
S_OK
;
}
}
dlls/qmgr/qmgr.c
View file @
022e3f53
...
@@ -85,7 +85,7 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_EnumJobs(IBackgroundCopyManage
...
@@ -85,7 +85,7 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_EnumJobs(IBackgroundCopyManage
DWORD
dwFlags
,
IEnumBackgroundCopyJobs
**
ppEnum
)
DWORD
dwFlags
,
IEnumBackgroundCopyJobs
**
ppEnum
)
{
{
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
return
EnumBackgroundCopyJobsConstructor
((
LPVOID
*
)
ppEnum
,
iface
);
return
enum_copy_job_create
(
&
globalMgr
,
ppEnum
);
}
}
static
HRESULT
WINAPI
BITS_IBackgroundCopyManager_GetErrorDescription
(
IBackgroundCopyManager
*
iface
,
static
HRESULT
WINAPI
BITS_IBackgroundCopyManager_GetErrorDescription
(
IBackgroundCopyManager
*
iface
,
...
...
dlls/qmgr/qmgr.h
View file @
022e3f53
...
@@ -100,8 +100,8 @@ extern BackgroundCopyManagerImpl globalMgr DECLSPEC_HIDDEN;
...
@@ -100,8 +100,8 @@ extern BackgroundCopyManagerImpl globalMgr DECLSPEC_HIDDEN;
HRESULT
BackgroundCopyManagerConstructor
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
BackgroundCopyManagerConstructor
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
BackgroundCopyJobConstructor
(
LPCWSTR
displayName
,
BG_JOB_TYPE
type
,
HRESULT
BackgroundCopyJobConstructor
(
LPCWSTR
displayName
,
BG_JOB_TYPE
type
,
GUID
*
pJobId
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
GUID
*
pJobId
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
EnumBackgroundCopyJobsConstructor
(
LPVOID
*
ppObj
,
HRESULT
enum_copy_job_create
(
BackgroundCopyManagerImpl
*
qmgr
,
IBackgroundCopyManager
*
copyManager
)
DECLSPEC_HIDDEN
;
IEnumBackgroundCopyJobs
**
enumjob
)
DECLSPEC_HIDDEN
;
HRESULT
BackgroundCopyFileConstructor
(
BackgroundCopyJobImpl
*
owner
,
HRESULT
BackgroundCopyFileConstructor
(
BackgroundCopyJobImpl
*
owner
,
LPCWSTR
remoteName
,
LPCWSTR
localName
,
LPCWSTR
remoteName
,
LPCWSTR
localName
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
...
...
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