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
b8771368
Commit
b8771368
authored
Nov 25, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Implement IBackgroundCopyJob::GetDescription().
parent
eeb05e6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
11 deletions
+24
-11
job.c
dlls/qmgr/job.c
+24
-11
No files found.
dlls/qmgr/job.c
View file @
b8771368
...
...
@@ -34,6 +34,23 @@ static inline BOOL is_job_done(const BackgroundCopyJobImpl *job)
return
job
->
state
==
BG_JOB_STATE_CANCELLED
||
job
->
state
==
BG_JOB_STATE_ACKNOWLEDGED
;
}
static
HRESULT
return_strval
(
const
WCHAR
*
str
,
WCHAR
**
ret
)
{
int
len
;
if
(
!
ret
)
return
E_INVALIDARG
;
len
=
strlenW
(
str
);
*
ret
=
CoTaskMemAlloc
((
len
+
1
)
*
sizeof
(
WCHAR
));
if
(
!*
ret
)
return
E_OUTOFMEMORY
;
if
(
len
)
strcpyW
(
*
ret
,
str
);
else
**
ret
=
0
;
return
S_OK
;
}
static
inline
BackgroundCopyJobImpl
*
impl_from_IBackgroundCopyJob2
(
IBackgroundCopyJob2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
BackgroundCopyJobImpl
,
IBackgroundCopyJob2_iface
);
...
...
@@ -313,17 +330,10 @@ static HRESULT WINAPI BITS_IBackgroundCopyJob_GetDisplayName(
LPWSTR
*
pVal
)
{
BackgroundCopyJobImpl
*
This
=
impl_from_IBackgroundCopyJob2
(
iface
);
int
n
;
if
(
!
pVal
)
return
E_INVALIDARG
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pVal
);
n
=
(
strlenW
(
This
->
displayName
)
+
1
)
*
sizeof
**
pVal
;
*
pVal
=
CoTaskMemAlloc
(
n
);
if
(
*
pVal
==
NULL
)
return
E_OUTOFMEMORY
;
memcpy
(
*
pVal
,
This
->
displayName
,
n
);
return
S_OK
;
return
return_strval
(
This
->
displayName
,
pVal
);
}
static
HRESULT
WINAPI
BITS_IBackgroundCopyJob_SetDescription
(
...
...
@@ -366,8 +376,11 @@ static HRESULT WINAPI BITS_IBackgroundCopyJob_GetDescription(
IBackgroundCopyJob2
*
iface
,
LPWSTR
*
pVal
)
{
FIXME
(
"Not implemented
\n
"
);
return
E_NOTIMPL
;
BackgroundCopyJobImpl
*
This
=
impl_from_IBackgroundCopyJob2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pVal
);
return
return_strval
(
This
->
description
,
pVal
);
}
static
HRESULT
WINAPI
BITS_IBackgroundCopyJob_SetPriority
(
...
...
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