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
b859d205
Commit
b859d205
authored
Feb 08, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Feb 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Allow some optional methods to be called in the OleCreate tests.
Fixes failures in these tests on NT4.
parent
d26250fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
ole2.c
dlls/ole32/tests/ole2.c
+22
-2
No files found.
dlls/ole32/tests/ole2.c
View file @
b859d205
...
...
@@ -683,10 +683,14 @@ static void test_OleCreate(IStorage *pStorage)
{
"OleObject_QueryInterface"
,
0
},
{
"OleObject_AddRef"
,
0
},
{
"OleObject_QueryInterface"
,
0
},
{
"OleObject_AddRef"
,
TEST_OPTIONAL
},
{
"OleObject_Release"
,
TEST_OPTIONAL
},
{
"OleObject_QueryInterface"
,
TEST_OPTIONAL
},
{
"OleObjectPersistStg_AddRef"
,
0
},
{
"OleObjectPersistStg_InitNew"
,
0
},
{
"OleObjectPersistStg_Release"
,
0
},
{
"OleObject_Release"
,
0
},
{
"OleObject_Release"
,
TEST_OPTIONAL
},
{
NULL
,
0
}
};
static
const
struct
expected_method
methods_olerender_draw
[]
=
...
...
@@ -694,6 +698,9 @@ static void test_OleCreate(IStorage *pStorage)
{
"OleObject_QueryInterface"
,
0
},
{
"OleObject_AddRef"
,
0
},
{
"OleObject_QueryInterface"
,
0
},
{
"OleObject_AddRef"
,
TEST_OPTIONAL
/* NT4 only */
},
{
"OleObject_Release"
,
TEST_OPTIONAL
/* NT4 only */
},
{
"OleObject_QueryInterface"
,
TEST_OPTIONAL
/* NT4 only */
},
{
"OleObjectPersistStg_AddRef"
,
0
},
{
"OleObjectPersistStg_InitNew"
,
0
},
{
"OleObjectPersistStg_Release"
,
0
},
...
...
@@ -706,6 +713,7 @@ static void test_OleCreate(IStorage *pStorage)
{
"OleObjectCache_Cache"
,
0
},
{
"OleObjectCache_Release"
,
0
},
{
"OleObject_Release"
,
0
},
{
"OleObject_Release"
,
TEST_OPTIONAL
/* NT4 only */
},
{
NULL
,
0
}
};
static
const
struct
expected_method
methods_olerender_format
[]
=
...
...
@@ -737,10 +745,14 @@ static void test_OleCreate(IStorage *pStorage)
{
"OleObject_QueryInterface"
,
0
},
{
"OleObject_AddRef"
,
0
},
{
"OleObject_QueryInterface"
,
0
},
{
"OleObject_AddRef"
,
TEST_OPTIONAL
/* NT4 only */
},
{
"OleObject_Release"
,
TEST_OPTIONAL
/* NT4 only */
},
{
"OleObject_QueryInterface"
,
TEST_OPTIONAL
/* NT4 only */
},
{
"OleObjectPersistStg_AddRef"
,
0
},
{
"OleObjectPersistStg_InitNew"
,
0
},
{
"OleObjectPersistStg_Release"
,
0
},
{
"OleObject_Release"
,
0
},
{
"OleObject_Release"
,
TEST_OPTIONAL
/* NT4 only */
},
{
NULL
,
0
}
};
static
const
struct
expected_method
methods_olerender_draw_no_runnable
[]
=
...
...
@@ -748,6 +760,9 @@ static void test_OleCreate(IStorage *pStorage)
{
"OleObject_QueryInterface"
,
0
},
{
"OleObject_AddRef"
,
0
},
{
"OleObject_QueryInterface"
,
0
},
{
"OleObject_AddRef"
,
TEST_OPTIONAL
/* NT4 only */
},
{
"OleObject_Release"
,
TEST_OPTIONAL
/* NT4 only */
},
{
"OleObject_QueryInterface"
,
TEST_OPTIONAL
/* NT4 only */
},
{
"OleObjectPersistStg_AddRef"
,
0
},
{
"OleObjectPersistStg_InitNew"
,
0
},
{
"OleObjectPersistStg_Release"
,
0
},
...
...
@@ -757,6 +772,7 @@ static void test_OleCreate(IStorage *pStorage)
{
"OleObjectCache_Cache"
,
0
},
{
"OleObjectCache_Release"
,
0
},
{
"OleObject_Release"
,
0
},
{
"OleObject_Release"
,
TEST_OPTIONAL
/* NT4 only */
},
{
NULL
,
0
},
};
static
const
struct
expected_method
methods_olerender_draw_no_cache
[]
=
...
...
@@ -764,6 +780,9 @@ static void test_OleCreate(IStorage *pStorage)
{
"OleObject_QueryInterface"
,
0
},
{
"OleObject_AddRef"
,
0
},
{
"OleObject_QueryInterface"
,
0
},
{
"OleObject_AddRef"
,
TEST_OPTIONAL
/* NT4 only */
},
{
"OleObject_Release"
,
TEST_OPTIONAL
/* NT4 only */
},
{
"OleObject_QueryInterface"
,
TEST_OPTIONAL
/* NT4 only */
},
{
"OleObjectPersistStg_AddRef"
,
0
},
{
"OleObjectPersistStg_InitNew"
,
0
},
{
"OleObjectPersistStg_Release"
,
0
},
...
...
@@ -773,6 +792,7 @@ static void test_OleCreate(IStorage *pStorage)
{
"OleObjectRunnable_Release"
,
0
},
{
"OleObject_QueryInterface"
,
0
},
{
"OleObject_Release"
,
0
},
{
"OleObject_Release"
,
TEST_OPTIONAL
/* NT4 only */
},
{
NULL
,
0
}
};
...
...
@@ -818,7 +838,7 @@ static void test_OleCreate(IStorage *pStorage)
runnable
=
NULL
;
expected_method_list
=
methods_olerender_draw_no_runnable
;
trace
(
"OleCreate with OLERENDER_DRAW (no I
OlObjectRunnable
):
\n
"
);
trace
(
"OleCreate with OLERENDER_DRAW (no I
RunnableObject
):
\n
"
);
hr
=
OleCreate
(
&
CLSID_Equation3
,
&
IID_IOleObject
,
OLERENDER_DRAW
,
NULL
,
NULL
,
pStorage
,
(
void
**
)
&
pObject
);
ok_ole_success
(
hr
,
"OleCreate"
);
IOleObject_Release
(
pObject
);
...
...
@@ -827,7 +847,7 @@ static void test_OleCreate(IStorage *pStorage)
runnable
=
&
OleObjectRunnable
;
cache
=
NULL
;
expected_method_list
=
methods_olerender_draw_no_cache
;
trace
(
"OleCreate with OLERENDER_DRAW (no IOl
ObjectRunnabl
e):
\n
"
);
trace
(
"OleCreate with OLERENDER_DRAW (no IOl
eCach
e):
\n
"
);
hr
=
OleCreate
(
&
CLSID_Equation3
,
&
IID_IOleObject
,
OLERENDER_DRAW
,
NULL
,
NULL
,
pStorage
,
(
void
**
)
&
pObject
);
ok_ole_success
(
hr
,
"OleCreate"
);
IOleObject_Release
(
pObject
);
...
...
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