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
88111ca2
Commit
88111ca2
authored
Dec 24, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Remove some casts we don't need, fix a couple of others.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b19ad3af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ole2.c
dlls/ole32/tests/ole2.c
+9
-9
No files found.
dlls/ole32/tests/ole2.c
View file @
88111ca2
...
...
@@ -484,7 +484,7 @@ static IOleObject OleObject = { &OleObjectVtbl };
static
HRESULT
WINAPI
OleObjectPersistStg_QueryInterface
(
IPersistStorage
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
trace
(
"OleObjectPersistStg_QueryInterface
\n
"
);
return
I
Unknown_QueryInterface
((
IUnknown
*
)
&
OleObject
,
riid
,
ppv
);
return
I
OleObject_QueryInterface
(
&
OleObject
,
riid
,
ppv
);
}
static
ULONG
WINAPI
OleObjectPersistStg_AddRef
(
IPersistStorage
*
iface
)
...
...
@@ -582,7 +582,7 @@ static IPersistStorage OleObjectPersistStg = { &OleObjectPersistStgVtbl };
static
HRESULT
WINAPI
OleObjectCache_QueryInterface
(
IOleCache
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
return
I
Unknown_QueryInterface
((
IUnknown
*
)
&
OleObject
,
riid
,
ppv
);
return
I
OleObject_QueryInterface
(
&
OleObject
,
riid
,
ppv
);
}
static
ULONG
WINAPI
OleObjectCache_AddRef
(
IOleCache
*
iface
)
...
...
@@ -708,7 +708,7 @@ static ULONG WINAPI OleObjectCF_Release(IClassFactory *iface)
static
HRESULT
WINAPI
OleObjectCF_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
punkOuter
,
REFIID
riid
,
void
**
ppv
)
{
return
I
Unknown_QueryInterface
((
IUnknown
*
)
&
OleObject
,
riid
,
ppv
);
return
I
OleObject_QueryInterface
(
&
OleObject
,
riid
,
ppv
);
}
static
HRESULT
WINAPI
OleObjectCF_LockServer
(
IClassFactory
*
iface
,
BOOL
lock
)
...
...
@@ -729,7 +729,7 @@ static IClassFactory OleObjectCF = { &OleObjectCFVtbl };
static
HRESULT
WINAPI
OleObjectRunnable_QueryInterface
(
IRunnableObject
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
return
I
Unknown_QueryInterface
((
IUnknown
*
)
&
OleObject
,
riid
,
ppv
);
return
I
OleObject_QueryInterface
(
&
OleObject
,
riid
,
ppv
);
}
static
ULONG
WINAPI
OleObjectRunnable_AddRef
(
IRunnableObject
*
iface
)
...
...
@@ -1912,13 +1912,13 @@ static void test_data_cache_dib_contents_stream(int num)
CLSID
cls
;
SIZEL
sz
;
hr
=
CreateDataCache
(
NULL
,
&
CLSID_Picture_Metafile
,
&
IID_IUnknown
,
(
void
*
)
&
unk
);
hr
=
CreateDataCache
(
NULL
,
&
CLSID_Picture_Metafile
,
&
IID_IUnknown
,
(
void
*
*
)
&
unk
);
ok
(
SUCCEEDED
(
hr
),
"got %08x
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IPersistStorage
,
(
void
*
)
&
persist
);
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IPersistStorage
,
(
void
*
*
)
&
persist
);
ok
(
SUCCEEDED
(
hr
),
"got %08x
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IDataObject
,
(
void
*
)
&
data
);
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IDataObject
,
(
void
*
*
)
&
data
);
ok
(
SUCCEEDED
(
hr
),
"got %08x
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IViewObject2
,
(
void
*
)
&
view
);
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IViewObject2
,
(
void
*
*
)
&
view
);
ok
(
SUCCEEDED
(
hr
),
"got %08x
\n
"
,
hr
);
stg
=
create_storage
(
num
);
...
...
@@ -2333,7 +2333,7 @@ static void test_OleLockRunning(void)
{
HRESULT
hr
;
hr
=
OleLockRunning
(
(
LPUNKNOWN
)
&
unknown
,
TRUE
,
FALSE
);
hr
=
OleLockRunning
(
&
unknown
,
TRUE
,
FALSE
);
ok
(
hr
==
S_OK
,
"OleLockRunning failed 0x%08x
\n
"
,
hr
);
}
...
...
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