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
ecd7ea60
Commit
ecd7ea60
authored
Dec 10, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wuapi: Use an iface instead of a vtbl pointer in update_downloader.
parent
c3827f1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
downloader.c
dlls/wuapi/downloader.c
+4
-4
No files found.
dlls/wuapi/downloader.c
View file @
ecd7ea60
...
...
@@ -36,13 +36,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(wuapi);
typedef
struct
_update_downloader
{
const
struct
IUpdateDownloaderVtbl
*
vtbl
;
IUpdateDownloader
IUpdateDownloader_iface
;
LONG
refs
;
}
update_downloader
;
static
inline
update_downloader
*
impl_from_IUpdateDownloader
(
IUpdateDownloader
*
iface
)
{
return
(
update_downloader
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
update_downloader
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
update_downloader
,
IUpdateDownloader_iface
);
}
static
ULONG
WINAPI
update_downloader_AddRef
(
...
...
@@ -257,10 +257,10 @@ HRESULT UpdateDownloader_create( IUnknown *pUnkOuter, LPVOID *ppObj )
downloader
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
downloader
)
);
if
(
!
downloader
)
return
E_OUTOFMEMORY
;
downloader
->
v
tbl
=
&
update_downloader_vtbl
;
downloader
->
IUpdateDownloader_iface
.
lpV
tbl
=
&
update_downloader_vtbl
;
downloader
->
refs
=
1
;
*
ppObj
=
&
downloader
->
vtbl
;
*
ppObj
=
&
downloader
->
IUpdateDownloader_iface
;
TRACE
(
"returning iface %p
\n
"
,
*
ppObj
);
return
S_OK
;
...
...
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