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
628a8743
Commit
628a8743
authored
May 22, 2009
by
Huw Davies
Committed by
Alexandre Julliard
May 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Fix tests on systems without IE installed.
parent
82f175e9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
compobj.c
dlls/ole32/tests/compobj.c
+13
-1
No files found.
dlls/ole32/tests/compobj.c
View file @
628a8743
...
...
@@ -253,6 +253,13 @@ static void test_CoCreateInstance(void)
OleInitialize
(
NULL
);
hr
=
CoCreateInstance
(
rclsid
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
pUnk
);
if
(
hr
==
REGDB_E_CLASSNOTREG
)
{
skip
(
"IE not installed so can't test CoCreateInstance
\n
"
);
OleUninitialize
();
return
;
}
ok_ole_success
(
hr
,
"CoCreateInstance"
);
if
(
pUnk
)
IUnknown_Release
(
pUnk
);
OleUninitialize
();
...
...
@@ -325,8 +332,13 @@ static void test_CoGetClassObject(void)
pUnk
=
(
IUnknown
*
)
0xdeadbeef
;
hr
=
CoGetClassObject
(
rclsid
,
CLSCTX_INPROC_SERVER
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
&
pUnk
);
if
(
hr
==
REGDB_E_CLASSNOTREG
)
skip
(
"IE not installed so can't test CoGetClassObject
\n
"
);
else
{
ok
(
hr
==
S_OK
,
"CoGetClassObject should have returned S_OK instead of 0x%08x
\n
"
,
hr
);
if
(
pUnk
)
IUnknown_Release
(
pUnk
);
}
SetEvent
(
info
.
stop
);
WaitForSingleObject
(
thread
,
INFINITE
);
...
...
@@ -1030,7 +1042,7 @@ static void test_CoFreeUnusedLibraries(void)
hr
=
CoCreateInstance
(
&
CLSID_FileProtocol
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IInternetProtocol
,
(
void
**
)
&
pUnk
);
if
(
hr
==
REGDB_E_CLASSNOTREG
)
{
trace
(
"IE not installed so can't run CoFreeUnusedLibraries test
\n
"
);
skip
(
"IE not installed so can't run CoFreeUnusedLibraries test
\n
"
);
CoUninitialize
();
return
;
}
...
...
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