mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
qmgr: Parameter cleanup for a helper function.
This commit is contained in:
parent
a3fdfa22ff
commit
022e3f5333
@ -163,15 +163,13 @@ static const IEnumBackgroundCopyJobsVtbl BITS_IEnumBackgroundCopyJobs_Vtbl =
|
||||
BITS_IEnumBackgroundCopyJobs_GetCount
|
||||
};
|
||||
|
||||
HRESULT EnumBackgroundCopyJobsConstructor(LPVOID *ppObj,
|
||||
IBackgroundCopyManager* copyManager)
|
||||
HRESULT enum_copy_job_create(BackgroundCopyManagerImpl *qmgr, IEnumBackgroundCopyJobs **enumjob)
|
||||
{
|
||||
BackgroundCopyManagerImpl *qmgr = (BackgroundCopyManagerImpl *) copyManager;
|
||||
EnumBackgroundCopyJobsImpl *This;
|
||||
BackgroundCopyJobImpl *job;
|
||||
ULONG i;
|
||||
|
||||
TRACE("%p, %p)\n", ppObj, copyManager);
|
||||
TRACE("%p, %p)\n", qmgr, enumjob);
|
||||
|
||||
This = HeapAlloc(GetProcessHeap(), 0, sizeof *This);
|
||||
if (!This)
|
||||
@ -208,6 +206,6 @@ HRESULT EnumBackgroundCopyJobsConstructor(LPVOID *ppObj,
|
||||
}
|
||||
LeaveCriticalSection(&qmgr->cs);
|
||||
|
||||
*ppObj = &This->lpVtbl;
|
||||
*enumjob = (IEnumBackgroundCopyJobs *)&This->lpVtbl;
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_EnumJobs(IBackgroundCopyManage
|
||||
DWORD dwFlags, IEnumBackgroundCopyJobs **ppEnum)
|
||||
{
|
||||
TRACE("\n");
|
||||
return EnumBackgroundCopyJobsConstructor((LPVOID *) ppEnum, iface);
|
||||
return enum_copy_job_create(&globalMgr, ppEnum);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI BITS_IBackgroundCopyManager_GetErrorDescription(IBackgroundCopyManager *iface,
|
||||
|
@ -100,8 +100,8 @@ extern BackgroundCopyManagerImpl globalMgr DECLSPEC_HIDDEN;
|
||||
HRESULT BackgroundCopyManagerConstructor(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN;
|
||||
HRESULT BackgroundCopyJobConstructor(LPCWSTR displayName, BG_JOB_TYPE type,
|
||||
GUID *pJobId, LPVOID *ppObj) DECLSPEC_HIDDEN;
|
||||
HRESULT EnumBackgroundCopyJobsConstructor(LPVOID *ppObj,
|
||||
IBackgroundCopyManager* copyManager) DECLSPEC_HIDDEN;
|
||||
HRESULT enum_copy_job_create(BackgroundCopyManagerImpl *qmgr,
|
||||
IEnumBackgroundCopyJobs **enumjob) DECLSPEC_HIDDEN;
|
||||
HRESULT BackgroundCopyFileConstructor(BackgroundCopyJobImpl *owner,
|
||||
LPCWSTR remoteName, LPCWSTR localName,
|
||||
LPVOID *ppObj) DECLSPEC_HIDDEN;
|
||||
|
Loading…
Reference in New Issue
Block a user