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
153b94b3
Commit
153b94b3
authored
Aug 13, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Use proper helpers for iface calls.
parent
5a31c1a8
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
30 additions
and
37 deletions
+30
-37
antimoniker.c
dlls/ole32/antimoniker.c
+2
-3
classmoniker.c
dlls/ole32/classmoniker.c
+2
-3
comcat.c
dlls/ole32/comcat.c
+1
-1
compobj.c
dlls/ole32/compobj.c
+4
-4
compositemoniker.c
dlls/ole32/compositemoniker.c
+2
-3
datacache.c
dlls/ole32/datacache.c
+1
-1
defaulthandler.c
dlls/ole32/defaulthandler.c
+1
-1
filemoniker.c
dlls/ole32/filemoniker.c
+1
-1
ftmarshal.c
dlls/ole32/ftmarshal.c
+1
-1
ifs.c
dlls/ole32/ifs.c
+1
-1
itemmoniker.c
dlls/ole32/itemmoniker.c
+2
-3
marshal.c
dlls/ole32/marshal.c
+2
-2
moniker.c
dlls/ole32/moniker.c
+2
-2
ole2.c
dlls/ole32/ole2.c
+3
-6
oleobj.c
dlls/ole32/oleobj.c
+1
-1
pointermoniker.c
dlls/ole32/pointermoniker.c
+1
-1
rpc.c
dlls/ole32/rpc.c
+2
-2
stubmanager.c
dlls/ole32/stubmanager.c
+1
-1
No files found.
dlls/ole32/antimoniker.c
View file @
153b94b3
...
...
@@ -629,14 +629,13 @@ HRESULT WINAPI CreateAntiMoniker(IMoniker **ppmk)
(
void
**
)
ppmk
);
}
static
HRESULT
WINAPI
AntiMonikerCF_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
static
HRESULT
WINAPI
AntiMonikerCF_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
ClassFactory
_AddRef
(
iface
);
return
S_OK
;
}
return
E_NOINTERFACE
;
...
...
dlls/ole32/classmoniker.c
View file @
153b94b3
...
...
@@ -816,14 +816,13 @@ HRESULT ClassMoniker_CreateFromDisplayName(LPBC pbc, LPCOLESTR szDisplayName, LP
return
hr
;
}
static
HRESULT
WINAPI
ClassMonikerCF_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
static
HRESULT
WINAPI
ClassMonikerCF_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
ClassFactory
_AddRef
(
iface
);
return
S_OK
;
}
return
E_NOINTERFACE
;
...
...
dlls/ole32/comcat.c
View file @
153b94b3
...
...
@@ -720,7 +720,7 @@ static HRESULT WINAPI COMCAT_IClassFactory_QueryInterface(
IsEqualGUID
(
riid
,
&
IID_IClassFactory
))
{
*
ppvObj
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
ClassFactory
_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/ole32/compobj.c
View file @
153b94b3
...
...
@@ -732,7 +732,7 @@ DWORD apartment_release(struct apartment *apt)
* apartment, which it must do. */
assert
(
list_empty
(
&
apt
->
stubmgrs
));
if
(
apt
->
filter
)
I
Unknown
_Release
(
apt
->
filter
);
if
(
apt
->
filter
)
I
MessageFilter
_Release
(
apt
->
filter
);
/* free as many unused libraries as possible... */
apartment_freeunusedlibraries
(
apt
,
0
);
...
...
@@ -1254,7 +1254,7 @@ static void COM_TlsDestroy(void)
if
(
info
->
apt
)
apartment_release
(
info
->
apt
);
if
(
info
->
errorinfo
)
IErrorInfo_Release
(
info
->
errorinfo
);
if
(
info
->
state
)
IUnknown_Release
(
info
->
state
);
if
(
info
->
spy
)
I
Unknown
_Release
(
info
->
spy
);
if
(
info
->
spy
)
I
InitializeSpy
_Release
(
info
->
spy
);
if
(
info
->
context_token
)
IObjContext_Release
(
info
->
context_token
);
HeapFree
(
GetProcessHeap
(),
0
,
info
);
NtCurrentTeb
()
->
ReservedForOle
=
NULL
;
...
...
@@ -1313,7 +1313,7 @@ HRESULT WINAPI CoRegisterInitializeSpy(IInitializeSpy *spy, ULARGE_INTEGER *cook
return
E_UNEXPECTED
;
}
hr
=
I
Unknown
_QueryInterface
(
spy
,
&
IID_IInitializeSpy
,
(
void
**
)
&
info
->
spy
);
hr
=
I
InitializeSpy
_QueryInterface
(
spy
,
&
IID_IInitializeSpy
,
(
void
**
)
&
info
->
spy
);
if
(
SUCCEEDED
(
hr
))
{
cookie
->
QuadPart
=
(
DWORD_PTR
)
spy
;
...
...
@@ -1345,7 +1345,7 @@ HRESULT WINAPI CoRevokeInitializeSpy(ULARGE_INTEGER cookie)
if
(
!
info
||
!
info
->
spy
||
cookie
.
QuadPart
!=
(
DWORD_PTR
)
info
->
spy
)
return
E_INVALIDARG
;
I
Unknown
_Release
(
info
->
spy
);
I
InitializeSpy
_Release
(
info
->
spy
);
info
->
spy
=
NULL
;
return
S_OK
;
}
...
...
dlls/ole32/compositemoniker.c
View file @
153b94b3
...
...
@@ -1968,14 +1968,13 @@ MonikerCommonPrefixWith(IMoniker* pmkThis,IMoniker* pmkOther,IMoniker** ppmkComm
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CompositeMonikerCF_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
static
HRESULT
WINAPI
CompositeMonikerCF_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
ClassFactory
_AddRef
(
iface
);
return
S_OK
;
}
return
E_NOINTERFACE
;
...
...
dlls/ole32/datacache.c
View file @
153b94b3
...
...
@@ -2151,7 +2151,7 @@ static void WINAPI DataCache_OnDataChange(IAdviseSink *iface, FORMATETC *fmt, ST
{
DataCache
*
This
=
impl_from_IAdviseSink
(
iface
);
TRACE
(
"(%p)->(%s, %p)
\n
"
,
This
,
debugstr_formatetc
(
fmt
),
med
);
IOleCache_SetData
(
&
This
->
IOleCache2_iface
,
fmt
,
med
,
FALSE
);
IOleCache
2
_SetData
(
&
This
->
IOleCache2_iface
,
fmt
,
med
,
FALSE
);
}
static
void
WINAPI
DataCache_OnViewChange
(
IAdviseSink
*
iface
,
DWORD
aspect
,
LONG
index
)
...
...
dlls/ole32/defaulthandler.c
View file @
153b94b3
...
...
@@ -231,7 +231,7 @@ static HRESULT WINAPI DefaultHandler_NDIUnknown_QueryInterface(
}
else
if
(
This
->
inproc_server
&&
This
->
pOleDelegate
)
{
return
I
Unknown
_QueryInterface
(
This
->
pOleDelegate
,
riid
,
ppvObject
);
return
I
OleObject
_QueryInterface
(
This
->
pOleDelegate
,
riid
,
ppvObject
);
}
/* Check that we obtained an interface. */
...
...
dlls/ole32/filemoniker.c
View file @
153b94b3
...
...
@@ -1555,7 +1555,7 @@ static HRESULT WINAPI FileMonikerCF_QueryInterface(LPCLASSFACTORY iface,
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
ClassFactory
_AddRef
(
iface
);
return
S_OK
;
}
return
E_NOINTERFACE
;
...
...
dlls/ole32/ftmarshal.c
View file @
153b94b3
...
...
@@ -358,7 +358,7 @@ static HRESULT WINAPI FTMarshalCF_QueryInterface(LPCLASSFACTORY iface,
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
ClassFactory
_AddRef
(
iface
);
return
S_OK
;
}
return
E_NOINTERFACE
;
...
...
dlls/ole32/ifs.c
View file @
153b94b3
...
...
@@ -457,7 +457,7 @@ HRESULT WINAPI CoRegisterMallocSpy(LPMALLOCSPY pMallocSpy)
EnterCriticalSection
(
&
IMalloc32_SpyCS
);
if
(
SUCCEEDED
(
I
Unknown_QueryInterface
(
pMallocSpy
,
&
IID_IMallocSpy
,
(
LPVOID
*
)
&
pSpy
)))
{
if
(
SUCCEEDED
(
I
MallocSpy_QueryInterface
(
pMallocSpy
,
&
IID_IMallocSpy
,
(
void
*
*
)
&
pSpy
)))
{
Malloc32
.
pSpy
=
pSpy
;
hres
=
S_OK
;
}
...
...
dlls/ole32/itemmoniker.c
View file @
153b94b3
...
...
@@ -952,14 +952,13 @@ HRESULT WINAPI CreateItemMoniker(LPCOLESTR lpszDelim, LPCOLESTR lpszItem, IMoni
(
void
**
)
ppmk
);
}
static
HRESULT
WINAPI
ItemMonikerCF_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
static
HRESULT
WINAPI
ItemMonikerCF_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
ClassFactory
_AddRef
(
iface
);
return
S_OK
;
}
return
E_NOINTERFACE
;
...
...
dlls/ole32/marshal.c
View file @
153b94b3
...
...
@@ -1175,13 +1175,13 @@ typedef struct _StdMarshalImpl
}
StdMarshalImpl
;
static
HRESULT
WINAPI
StdMarshalImpl_QueryInterface
(
LPMARSHAL
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
StdMarshalImpl_QueryInterface
(
IMarshal
*
iface
,
REFIID
riid
,
void
*
*
ppv
)
{
*
ppv
=
NULL
;
if
(
IsEqualIID
(
&
IID_IUnknown
,
riid
)
||
IsEqualIID
(
&
IID_IMarshal
,
riid
))
{
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
Marshal
_AddRef
(
iface
);
return
S_OK
;
}
FIXME
(
"No interface for %s.
\n
"
,
debugstr_guid
(
riid
));
...
...
dlls/ole32/moniker.c
View file @
153b94b3
...
...
@@ -192,7 +192,7 @@ static void rot_entry_delete(struct rot_entry *rot_entry)
if
(
hr
==
S_OK
)
{
CoReleaseMarshalData
(
stream
);
I
Unknown
_Release
(
stream
);
I
Stream
_Release
(
stream
);
}
}
MIDL_user_free
(
moniker
);
...
...
@@ -205,7 +205,7 @@ static void rot_entry_delete(struct rot_entry *rot_entry)
if
(
hr
==
S_OK
)
{
CoReleaseMarshalData
(
stream
);
I
Unknown
_Release
(
stream
);
I
Stream
_Release
(
stream
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
rot_entry
->
object
);
...
...
dlls/ole32/ole2.c
View file @
153b94b3
...
...
@@ -975,7 +975,7 @@ static HRESULT WINAPI EnumOLEVERB_QueryInterface(
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IEnumOLEVERB
))
{
I
Unknown
_AddRef
(
iface
);
I
EnumOLEVERB
_AddRef
(
iface
);
*
ppv
=
iface
;
return
S_OK
;
}
...
...
@@ -1333,10 +1333,7 @@ HRESULT WINAPI OleLoad(
/*
* Initialize the object with its IPersistStorage interface.
*/
hres
=
IOleObject_QueryInterface
(
pUnk
,
&
IID_IPersistStorage
,
(
void
**
)
&
persistStorage
);
hres
=
IUnknown_QueryInterface
(
pUnk
,
&
IID_IPersistStorage
,
(
void
**
)
&
persistStorage
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
IPersistStorage_Load
(
persistStorage
,
pStg
);
...
...
@@ -2939,7 +2936,7 @@ HRESULT WINAPI PropVariantClear(PROPVARIANT * pvar) /* [in/out] */
case
VT_STORAGE
:
case
VT_STORED_OBJECT
:
if
(
pvar
->
u
.
pStream
)
I
Unknown
_Release
(
pvar
->
u
.
pStream
);
I
Stream
_Release
(
pvar
->
u
.
pStream
);
break
;
case
VT_CLSID
:
case
VT_LPSTR
:
...
...
dlls/ole32/oleobj.c
View file @
153b94b3
...
...
@@ -96,7 +96,7 @@ static HRESULT WINAPI EnumSTATDATA_QueryInterface(IEnumSTATDATA *iface, REFIID r
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IEnumSTATDATA
))
{
I
Unknown
_AddRef
(
iface
);
I
EnumSTATDATA
_AddRef
(
iface
);
*
ppv
=
iface
;
return
S_OK
;
}
...
...
dlls/ole32/pointermoniker.c
View file @
153b94b3
...
...
@@ -596,7 +596,7 @@ static HRESULT WINAPI PointerMonikerCF_QueryInterface(LPCLASSFACTORY iface,
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IClassFactory
))
{
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
ClassFactory
_AddRef
(
iface
);
return
S_OK
;
}
return
E_NOINTERFACE
;
...
...
dlls/ole32/rpc.c
View file @
153b94b3
...
...
@@ -459,13 +459,13 @@ void RPC_UnregisterAllChannelHooks(void)
/* RPC Channel Buffer Functions */
static
HRESULT
WINAPI
RpcChannelBuffer_QueryInterface
(
LPRPCCHANNELBUFFER
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
static
HRESULT
WINAPI
RpcChannelBuffer_QueryInterface
(
IRpcChannelBuffer
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IRpcChannelBuffer
)
||
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
*
ppv
=
iface
;
I
Unknown
_AddRef
(
iface
);
I
RpcChannelBuffer
_AddRef
(
iface
);
return
S_OK
;
}
return
E_NOINTERFACE
;
...
...
dlls/ole32/stubmanager.c
View file @
153b94b3
...
...
@@ -119,7 +119,7 @@ static void stub_manager_delete_ifstub(struct stub_manager *m, struct ifstub *if
RPC_UnregisterInterface
(
&
ifstub
->
iid
);
if
(
ifstub
->
stubbuffer
)
I
Unknown
_Release
(
ifstub
->
stubbuffer
);
if
(
ifstub
->
stubbuffer
)
I
RpcStubBuffer
_Release
(
ifstub
->
stubbuffer
);
IUnknown_Release
(
ifstub
->
iface
);
IRpcChannelBuffer_Release
(
ifstub
->
chan
);
...
...
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