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
1f60e14c
Commit
1f60e14c
authored
Aug 13, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Use proper iface call helpers.
parent
e02c3316
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
15 deletions
+15
-15
imaptransport.c
dlls/inetcomm/imaptransport.c
+7
-7
mimeole.c
dlls/inetcomm/mimeole.c
+3
-3
pop3transport.c
dlls/inetcomm/pop3transport.c
+2
-2
smtptransport.c
dlls/inetcomm/smtptransport.c
+2
-2
mimeole.c
dlls/inetcomm/tests/mimeole.c
+1
-1
No files found.
dlls/inetcomm/imaptransport.c
View file @
1f60e14c
...
@@ -50,7 +50,7 @@ static HRESULT WINAPI IMAPTransport_QueryInterface(IIMAPTransport *iface, REFIID
...
@@ -50,7 +50,7 @@ static HRESULT WINAPI IMAPTransport_QueryInterface(IIMAPTransport *iface, REFIID
IsEqualIID
(
riid
,
&
IID_IIMAPTransport
))
IsEqualIID
(
riid
,
&
IID_IIMAPTransport
))
{
{
*
ppv
=
iface
;
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
IMAPTransport
_AddRef
(
iface
);
return
S_OK
;
return
S_OK
;
}
}
*
ppv
=
NULL
;
*
ppv
=
NULL
;
...
@@ -443,30 +443,30 @@ HRESULT WINAPI CreateIMAPTransport(IIMAPTransport **ppTransport)
...
@@ -443,30 +443,30 @@ HRESULT WINAPI CreateIMAPTransport(IIMAPTransport **ppTransport)
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
IMAPTransportCF_QueryInterface
(
LPCLASSFACTORY
iface
,
static
HRESULT
WINAPI
IMAPTransportCF_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
REFIID
riid
,
LPVOID
*
ppv
)
{
{
*
ppv
=
NULL
;
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
{
*
ppv
=
iface
;
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
ClassFactory
_AddRef
(
iface
);
return
S_OK
;
return
S_OK
;
}
}
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
static
ULONG
WINAPI
IMAPTransportCF_AddRef
(
LPCLASSFACTORY
iface
)
static
ULONG
WINAPI
IMAPTransportCF_AddRef
(
IClassFactory
*
iface
)
{
{
return
2
;
/* non-heap based object */
return
2
;
/* non-heap based object */
}
}
static
ULONG
WINAPI
IMAPTransportCF_Release
(
LPCLASSFACTORY
iface
)
static
ULONG
WINAPI
IMAPTransportCF_Release
(
IClassFactory
*
iface
)
{
{
return
1
;
/* non-heap based object */
return
1
;
/* non-heap based object */
}
}
static
HRESULT
WINAPI
IMAPTransportCF_CreateInstance
(
LPCLASSFACTORY
iface
,
static
HRESULT
WINAPI
IMAPTransportCF_CreateInstance
(
IClassFactory
*
iface
,
LPUNKNOWN
pUnk
,
REFIID
riid
,
LPVOID
*
ppv
)
LPUNKNOWN
pUnk
,
REFIID
riid
,
LPVOID
*
ppv
)
{
{
HRESULT
hr
;
HRESULT
hr
;
...
@@ -489,7 +489,7 @@ static HRESULT WINAPI IMAPTransportCF_CreateInstance(LPCLASSFACTORY iface,
...
@@ -489,7 +489,7 @@ static HRESULT WINAPI IMAPTransportCF_CreateInstance(LPCLASSFACTORY iface,
return
hr
;
return
hr
;
}
}
static
HRESULT
WINAPI
IMAPTransportCF_LockServer
(
LPCLASSFACTORY
iface
,
BOOL
fLock
)
static
HRESULT
WINAPI
IMAPTransportCF_LockServer
(
IClassFactory
*
iface
,
BOOL
fLock
)
{
{
FIXME
(
"(%d), stub!
\n
"
,
fLock
);
FIXME
(
"(%d), stub!
\n
"
,
fLock
);
return
S_OK
;
return
S_OK
;
...
...
dlls/inetcomm/mimeole.c
View file @
1f60e14c
...
@@ -1448,7 +1448,7 @@ static HRESULT WINAPI MimeMessage_QueryInterface(IMimeMessage *iface, REFIID rii
...
@@ -1448,7 +1448,7 @@ static HRESULT WINAPI MimeMessage_QueryInterface(IMimeMessage *iface, REFIID rii
IsEqualIID
(
riid
,
&
IID_IMimeMessage
))
IsEqualIID
(
riid
,
&
IID_IMimeMessage
))
{
{
*
ppv
=
iface
;
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
MimeMessage
_AddRef
(
iface
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -2619,7 +2619,7 @@ static HRESULT WINAPI MimeSecurity_QueryInterface(
...
@@ -2619,7 +2619,7 @@ static HRESULT WINAPI MimeSecurity_QueryInterface(
IsEqualIID
(
riid
,
&
IID_IMimeSecurity
))
IsEqualIID
(
riid
,
&
IID_IMimeSecurity
))
{
{
*
obj
=
iface
;
*
obj
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
MimeSecurity
_AddRef
(
iface
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -2807,7 +2807,7 @@ static HRESULT WINAPI MimeAlloc_QueryInterface(
...
@@ -2807,7 +2807,7 @@ static HRESULT WINAPI MimeAlloc_QueryInterface(
IsEqualIID
(
riid
,
&
IID_IMimeAllocator
))
IsEqualIID
(
riid
,
&
IID_IMimeAllocator
))
{
{
*
obj
=
iface
;
*
obj
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
MimeAllocator
_AddRef
(
iface
);
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/inetcomm/pop3transport.c
View file @
1f60e14c
...
@@ -729,7 +729,7 @@ static HRESULT WINAPI POP3Transport_QueryInterface(IPOP3Transport *iface, REFIID
...
@@ -729,7 +729,7 @@ static HRESULT WINAPI POP3Transport_QueryInterface(IPOP3Transport *iface, REFIID
IsEqualIID
(
riid
,
&
IID_IPOP3Transport
))
IsEqualIID
(
riid
,
&
IID_IPOP3Transport
))
{
{
*
ppv
=
iface
;
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
POP3Transport
_AddRef
(
iface
);
return
S_OK
;
return
S_OK
;
}
}
*
ppv
=
NULL
;
*
ppv
=
NULL
;
...
@@ -1139,7 +1139,7 @@ static HRESULT WINAPI POP3TransportCF_QueryInterface(LPCLASSFACTORY iface,
...
@@ -1139,7 +1139,7 @@ static HRESULT WINAPI POP3TransportCF_QueryInterface(LPCLASSFACTORY iface,
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
{
*
ppv
=
iface
;
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
ClassFactory
_AddRef
(
iface
);
return
S_OK
;
return
S_OK
;
}
}
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
...
...
dlls/inetcomm/smtptransport.c
View file @
1f60e14c
...
@@ -532,7 +532,7 @@ static HRESULT WINAPI SMTPTransport_QueryInterface(ISMTPTransport2 *iface, REFII
...
@@ -532,7 +532,7 @@ static HRESULT WINAPI SMTPTransport_QueryInterface(ISMTPTransport2 *iface, REFII
IsEqualIID
(
riid
,
&
IID_ISMTPTransport2
))
IsEqualIID
(
riid
,
&
IID_ISMTPTransport2
))
{
{
*
ppv
=
iface
;
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
SMTPTransport2
_AddRef
(
iface
);
return
S_OK
;
return
S_OK
;
}
}
*
ppv
=
NULL
;
*
ppv
=
NULL
;
...
@@ -989,7 +989,7 @@ static HRESULT WINAPI SMTPTransportCF_QueryInterface(LPCLASSFACTORY iface,
...
@@ -989,7 +989,7 @@ static HRESULT WINAPI SMTPTransportCF_QueryInterface(LPCLASSFACTORY iface,
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
{
*
ppv
=
iface
;
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
ClassFactory
_AddRef
(
iface
);
return
S_OK
;
return
S_OK
;
}
}
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
...
...
dlls/inetcomm/tests/mimeole.c
View file @
1f60e14c
...
@@ -314,7 +314,7 @@ static void test_CreateMessage(void)
...
@@ -314,7 +314,7 @@ static void test_CreateMessage(void)
ok
(
count
==
2
,
"got %d
\n
"
,
count
);
ok
(
count
==
2
,
"got %d
\n
"
,
count
);
CoTaskMemFree
(
body_list
);
CoTaskMemFree
(
body_list
);
hr
=
IMime
Message
_GetCharset
(
body
,
&
hcs
);
hr
=
IMime
Body
_GetCharset
(
body
,
&
hcs
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
todo_wine
todo_wine
{
{
...
...
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