Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b84201dc
Commit
b84201dc
authored
Dec 02, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink: Fix memory leaks in test.
parent
be3c9743
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
hlink.c
dlls/hlink/tests/hlink.c
+6
-0
No files found.
dlls/hlink/tests/hlink.c
View file @
b84201dc
...
...
@@ -660,6 +660,7 @@ static void test_HlinkParseDisplayName(void)
ok
(
hres
==
S_OK
,
"IsSystemMoniker failed: %08x
\n
"
,
hres
);
ok
(
issys
==
MKSYS_FILEMONIKER
,
"issys=%x
\n
"
,
issys
);
IMoniker_Release
(
mon
);
IBindCtx_Release
(
bctx
);
}
...
...
@@ -1061,6 +1062,7 @@ static void test_HlinkGetSetMonikerReference(void)
ok
(
found_trgt
==
dummy2
,
"Found target should've been %p, was: %p
\n
"
,
dummy2
,
found_trgt
);
ok
(
lstrcmpW
(
found_loc
,
two
)
==
0
,
"Found location should've been %s, was: %s
\n
"
,
wine_dbgstr_w
(
two
),
wine_dbgstr_w
(
found_loc
));
IMoniker_Release
(
found_trgt
);
CoTaskMemFree
(
found_loc
);
/* set target => dummy, location => one */
hres
=
IHlink_SetMonikerReference
(
hlink
,
HLINKSETF_TARGET
|
HLINKSETF_LOCATION
,
dummy
,
one
);
...
...
@@ -1070,6 +1072,7 @@ static void test_HlinkGetSetMonikerReference(void)
ok
(
found_trgt
==
dummy
,
"Found target should've been %p, was: %p
\n
"
,
dummy
,
found_trgt
);
ok
(
lstrcmpW
(
found_loc
,
one
)
==
0
,
"Found location should've been %s, was: %s
\n
"
,
wine_dbgstr_w
(
one
),
wine_dbgstr_w
(
found_loc
));
IMoniker_Release
(
found_trgt
);
CoTaskMemFree
(
found_loc
);
/* no HLINKSETF flags */
hres
=
IHlink_SetMonikerReference
(
hlink
,
0
,
dummy2
,
two
);
...
...
@@ -1079,6 +1082,7 @@ static void test_HlinkGetSetMonikerReference(void)
ok
(
found_trgt
==
dummy
,
"Found target should've been %p, was: %p
\n
"
,
dummy
,
found_trgt
);
ok
(
lstrcmpW
(
found_loc
,
one
)
==
0
,
"Found location should've been %s, was: %s
\n
"
,
wine_dbgstr_w
(
one
),
wine_dbgstr_w
(
found_loc
));
IMoniker_Release
(
found_trgt
);
CoTaskMemFree
(
found_loc
);
/* invalid HLINKSETF flags */
hres
=
IHlink_SetMonikerReference
(
hlink
,
12
,
dummy2
,
two
);
...
...
@@ -1088,6 +1092,7 @@ static void test_HlinkGetSetMonikerReference(void)
ok
(
found_trgt
==
dummy
,
"Found target should've been %p, was: %p
\n
"
,
dummy
,
found_trgt
);
ok
(
lstrcmpW
(
found_loc
,
one
)
==
0
,
"Found location should've been %s, was: %s
\n
"
,
wine_dbgstr_w
(
one
),
wine_dbgstr_w
(
found_loc
));
IMoniker_Release
(
found_trgt
);
CoTaskMemFree
(
found_loc
);
/* valid & invalid HLINKSETF flags */
hres
=
IHlink_SetMonikerReference
(
hlink
,
12
|
HLINKSETF_TARGET
,
dummy2
,
two
);
...
...
@@ -1097,6 +1102,7 @@ static void test_HlinkGetSetMonikerReference(void)
ok
(
found_trgt
==
dummy2
,
"Found target should've been %p, was: %p
\n
"
,
dummy2
,
found_trgt
);
ok
(
lstrcmpW
(
found_loc
,
one
)
==
0
,
"Found location should've been %s, was: %s
\n
"
,
wine_dbgstr_w
(
one
),
wine_dbgstr_w
(
found_loc
));
IMoniker_Release
(
found_trgt
);
CoTaskMemFree
(
found_loc
);
/* NULL args */
hres
=
IHlink_SetMonikerReference
(
hlink
,
HLINKSETF_TARGET
|
HLINKSETF_LOCATION
,
NULL
,
NULL
);
...
...
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