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
a8183a63
Commit
a8183a63
authored
Mar 16, 2010
by
Andrew Eikum
Committed by
Alexandre Julliard
Mar 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink: Set hlink's location to NULL if the empty string is given.
parent
0346eac9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
link.c
dlls/hlink/link.c
+2
-0
hlink.c
dlls/hlink/tests/hlink.c
+3
-3
No files found.
dlls/hlink/link.c
View file @
a8183a63
...
...
@@ -291,6 +291,8 @@ static HRESULT WINAPI IHlink_fnSetStringReference(IHlink* iface,
if
(
grfHLSETF
&
HLINKSETF_LOCATION
)
{
heap_free
(
This
->
Location
);
This
->
Location
=
NULL
;
if
(
pwzLocation
&&
*
pwzLocation
)
This
->
Location
=
hlink_strdupW
(
pwzLocation
);
}
...
...
dlls/hlink/tests/hlink.c
View file @
a8183a63
...
...
@@ -1272,12 +1272,12 @@ static void r_getStringRef(unsigned line, IHlink *hlink, const WCHAR *exp_tgt, c
if
(
exp_tgt
)
ok_
(
__FILE__
,
line
)
(
!
lstrcmpW
(
fnd_tgt
,
exp_tgt
),
"Found string target should have been %s, was: %s
\n
"
,
wine_dbgstr_w
(
exp_tgt
),
wine_dbgstr_w
(
fnd_tgt
));
else
ok_
(
__FILE__
,
line
)
(
exp
_tgt
==
NULL
,
"Found string target should have been NULL, was: %s
\n
"
,
wine_dbgstr_w
(
fnd_tgt
));
ok_
(
__FILE__
,
line
)
(
fnd
_tgt
==
NULL
,
"Found string target should have been NULL, was: %s
\n
"
,
wine_dbgstr_w
(
fnd_tgt
));
if
(
exp_loc
)
ok_
(
__FILE__
,
line
)
(
!
lstrcmpW
(
fnd_loc
,
exp_loc
),
"Found string location should have been %s, was: %s
\n
"
,
wine_dbgstr_w
(
exp_loc
),
wine_dbgstr_w
(
fnd_loc
));
else
ok_
(
__FILE__
,
line
)
(
exp
_loc
==
NULL
,
"Found string location should have been NULL, was: %s
\n
"
,
wine_dbgstr_w
(
fnd_loc
));
ok_
(
__FILE__
,
line
)
(
fnd
_loc
==
NULL
,
"Found string location should have been NULL, was: %s
\n
"
,
wine_dbgstr_w
(
fnd_loc
));
CoTaskMemFree
(
fnd_tgt
);
CoTaskMemFree
(
fnd_loc
);
...
...
@@ -1305,7 +1305,7 @@ static IMoniker *r_getMonikerRef(unsigned line, IHlink *hlink, IMoniker *exp_tgt
if
(
exp_loc
)
ok_
(
__FILE__
,
line
)
(
!
lstrcmpW
(
fnd_loc
,
exp_loc
),
"Found string location should have been %s, was: %s
\n
"
,
wine_dbgstr_w
(
exp_loc
),
wine_dbgstr_w
(
fnd_loc
));
else
ok_
(
__FILE__
,
line
)
(
exp
_loc
==
NULL
,
"Found string location should have been NULL, was: %s
\n
"
,
wine_dbgstr_w
(
fnd_loc
));
ok_
(
__FILE__
,
line
)
(
fnd
_loc
==
NULL
,
"Found string location should have been NULL, was: %s
\n
"
,
wine_dbgstr_w
(
fnd_loc
));
CoTaskMemFree
(
fnd_loc
);
...
...
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