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
0eeb5727
Commit
0eeb5727
authored
May 11, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
May 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Check for correct return value.
parent
9d234fcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
moniker.c
dlls/ole32/tests/moniker.c
+6
-3
No files found.
dlls/ole32/tests/moniker.c
View file @
0eeb5727
...
...
@@ -777,12 +777,14 @@ static void test_MkParseDisplayName(void)
ok_ole_success
(
hr
,
CreateBindCtx
);
hr
=
MkParseDisplayName
(
pbc
,
wszNonExistentProgId
,
&
eaten
,
&
pmk
);
ok
(
hr
==
MK_E_CANTOPENFILE
,
"MkParseDisplayName should have failed with MK_E_CANTOPENFILE instead of 0x%08x
\n
"
,
hr
);
ok
(
hr
==
MK_E_SYNTAX
||
hr
==
MK_E_CANTOPENFILE
/* Win9x */
,
"MkParseDisplayName should have failed with MK_E_SYNTAX or MK_E_CANTOPENFILE instead of 0x%08x
\n
"
,
hr
);
/* no special handling of "clsid:" without the string form of the clsid
* following */
hr
=
MkParseDisplayName
(
pbc
,
wszDisplayNameClsid
,
&
eaten
,
&
pmk
);
ok
(
hr
==
MK_E_CANTOPENFILE
,
"MkParseDisplayName should have failed with MK_E_CANTOPENFILE instead of 0x%08x
\n
"
,
hr
);
ok
(
hr
==
MK_E_SYNTAX
||
hr
==
MK_E_CANTOPENFILE
/* Win9x */
,
"MkParseDisplayName should have failed with MK_E_SYNTAX or MK_E_CANTOPENFILE instead of 0x%08x
\n
"
,
hr
);
/* shows clsid has higher precedence than a running object */
hr
=
CreateFileMoniker
(
wszDisplayName
,
&
pmk
);
...
...
@@ -849,7 +851,8 @@ static void test_MkParseDisplayName(void)
}
hr
=
MkParseDisplayName
(
pbc
,
wszDisplayNameProgIdFail
,
&
eaten
,
&
pmk
);
ok
(
hr
==
MK_E_CANTOPENFILE
,
"MkParseDisplayName with ProgId without marker should fail with MK_E_CANTOPENFILE instead of 0x%08x
\n
"
,
hr
);
ok
(
hr
==
MK_E_SYNTAX
||
hr
==
MK_E_CANTOPENFILE
/* Win9x */
,
"MkParseDisplayName with ProgId without marker should fail with MK_E_SYNTAX or MK_E_CANTOPENFILE instead of 0x%08x
\n
"
,
hr
);
hr
=
CoRevokeClassObject
(
pdwReg1
);
ok_ole_success
(
hr
,
CoRevokeClassObject
);
...
...
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