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
f44d66c6
Commit
f44d66c6
authored
Mar 04, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: COM cleanup for the IMimeSecurity iface.
parent
d50b3b20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
28 deletions
+27
-28
mimeole.c
dlls/inetcomm/mimeole.c
+27
-28
No files found.
dlls/inetcomm/mimeole.c
View file @
f44d66c6
...
...
@@ -2592,54 +2592,53 @@ HRESULT WINAPI MimeOleCreateVirtualStream(IStream **ppStream)
typedef
struct
MimeSecurity
{
const
IMimeSecurityVtbl
*
lpVtbl
;
LONG
refs
;
IMimeSecurity
IMimeSecurity_iface
;
LONG
ref
;
}
MimeSecurity
;
static
HRESULT
WINAPI
MimeSecurity_QueryInterface
(
IMimeSecurity
*
iface
,
REFIID
riid
,
void
**
obj
)
static
inline
MimeSecurity
*
impl_from_IMimeSecurity
(
IMimeSecurity
*
iface
)
{
TRACE
(
"(%p)->(%s, %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
obj
);
return
CONTAINING_RECORD
(
iface
,
MimeSecurity
,
IMimeSecurity_iface
);
}
static
HRESULT
WINAPI
MimeSecurity_QueryInterface
(
IMimeSecurity
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
TRACE
(
"(%p)->(%s, %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppv
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IMimeSecurity
))
{
*
obj
=
iface
;
*
ppv
=
iface
;
IMimeSecurity_AddRef
(
iface
);
return
S_OK
;
}
FIXME
(
"no interface for %s
\n
"
,
debugstr_guid
(
riid
));
*
obj
=
NULL
;
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
MimeSecurity_AddRef
(
IMimeSecurity
*
iface
)
static
ULONG
WINAPI
MimeSecurity_AddRef
(
IMimeSecurity
*
iface
)
{
MimeSecurity
*
This
=
(
MimeSecurity
*
)
iface
;
TRACE
(
"(%p)->()
\n
"
,
iface
);
return
InterlockedIncrement
(
&
This
->
refs
);
MimeSecurity
*
This
=
impl_from_IMimeSecurity
(
iface
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
MimeSecurity_Release
(
IMimeSecurity
*
iface
)
static
ULONG
WINAPI
MimeSecurity_Release
(
IMimeSecurity
*
iface
)
{
MimeSecurity
*
This
=
(
MimeSecurity
*
)
iface
;
ULONG
refs
;
MimeSecurity
*
This
=
impl_from_IMimeSecurity
(
iface
)
;
LONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p)
->()
\n
"
,
iface
);
TRACE
(
"(%p)
ref=%d
\n
"
,
This
,
ref
);
refs
=
InterlockedDecrement
(
&
This
->
refs
);
if
(
!
refs
)
{
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
s
;
return
ref
;
}
static
HRESULT
WINAPI
MimeSecurity_InitNew
(
...
...
@@ -2764,10 +2763,10 @@ HRESULT MimeSecurity_create(IUnknown *outer, void **obj)
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lpVtbl
=
&
MimeSecurityVtbl
;
This
->
ref
s
=
1
;
This
->
IMimeSecurity_iface
.
lpVtbl
=
&
MimeSecurityVtbl
;
This
->
ref
=
1
;
*
obj
=
&
This
->
lpVtbl
;
*
obj
=
&
This
->
IMimeSecurity_iface
;
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