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
a2ae7a2b
Commit
a2ae7a2b
authored
Mar 01, 2010
by
Reece Dunn
Committed by
Alexandre Julliard
Mar 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink/tests: Add more tests to show a difference in string and moniker hlinks.
parent
61a56d34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
hlink.c
dlls/hlink/tests/hlink.c
+19
-0
No files found.
dlls/hlink/tests/hlink.c
View file @
a2ae7a2b
...
...
@@ -135,6 +135,13 @@ static void test_reference(void)
ok
(
r
==
S_OK
,
"failed
\n
"
);
CoTaskMemFree
(
str
);
r
=
IHlink_GetStringReference
(
lnk
,
-
1
,
NULL
,
NULL
);
ok
(
r
==
S_OK
,
"failed, r=%08x
\n
"
,
r
);
r
=
IHlink_GetStringReference
(
lnk
,
-
1
,
NULL
,
&
str
);
ok
(
r
==
S_OK
,
"failed, r=%08x
\n
"
,
r
);
ok
(
str
==
NULL
,
"string should be null
\n
"
);
r
=
IHlink_GetStringReference
(
lnk
,
HLINKGETREF_DEFAULT
,
&
str
,
NULL
);
ok
(
r
==
S_OK
,
"failed
\n
"
);
ok
(
!
lstrcmpW
(
str
,
url2
),
"url wrong
\n
"
);
...
...
@@ -1212,6 +1219,18 @@ static void test_HlinkGetSetStringReference(void)
CoTaskMemFree
(
fnd_tgt
);
CoTaskMemFree
(
fnd_loc
);
hres
=
IHlink_GetStringReference
(
link
,
-
1
,
&
fnd_tgt
,
NULL
);
todo_wine
ok
(
hres
==
E_FAIL
,
"IHlink_GetStringReference should have failed "
"with E_FAIL (0x%08x), instead: 0x%08x
\n
"
,
E_FAIL
,
hres
);
CoTaskMemFree
(
fnd_tgt
);
hres
=
IHlink_GetStringReference
(
link
,
-
1
,
NULL
,
NULL
);
ok
(
hres
==
S_OK
,
"failed, hres=%08x
\n
"
,
hres
);
hres
=
IHlink_GetStringReference
(
link
,
-
1
,
NULL
,
&
fnd_loc
);
ok
(
hres
==
S_OK
,
"failed, hres=%08x
\n
"
,
hres
);
CoTaskMemFree
(
fnd_loc
);
hres
=
IHlink_GetStringReference
(
link
,
-
1
,
&
fnd_tgt
,
&
fnd_loc
);
todo_wine
ok
(
hres
==
E_FAIL
,
"IHlink_GetStringReference should have failed "
"with E_FAIL (0x%08x), instead: 0x%08x
\n
"
,
E_FAIL
,
hres
);
...
...
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