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
873905ac
Commit
873905ac
authored
May 23, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
May 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink: Fix HlinkCreateFromString to create a URL moniker if the input target is a URL.
parent
58634e84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
hlink_main.c
dlls/hlink/hlink_main.c
+12
-7
No files found.
dlls/hlink/hlink_main.c
View file @
873905ac
...
...
@@ -134,17 +134,22 @@ HRESULT WINAPI HlinkCreateFromString( LPCWSTR pwzTarget, LPCWSTR pwzLocation,
if
(
FAILED
(
r
))
{
FIXME
(
"ParseDisplayName failed, falling back to file
\n
"
);
r
=
CreateFileMoniker
(
pwzTarget
,
&
pTgtMk
);
LPCWSTR
p
=
strchrW
(
pwzTarget
,
':'
);
if
(
p
&&
(
p
-
pwzTarget
>
1
))
r
=
CreateURLMoniker
(
NULL
,
pwzTarget
,
&
pTgtMk
);
else
r
=
CreateFileMoniker
(
pwzTarget
,
&
pTgtMk
);
}
if
(
pTgtMk
)
if
(
FAILED
(
r
)
)
{
IHlink_SetMonikerReference
(
hl
,
0
,
pTgtMk
,
pwzLocation
);
IMoniker_Release
(
pTgtMk
);
ERR
(
"couldn't create moniker for %s, failed with error 0x%08x
\n
"
,
debugstr_w
(
pwzTarget
),
r
);
return
r
;
}
else
FIXME
(
"Unable to come up with a moniker, expect problems
\n
"
);
IHlink_SetMonikerReference
(
hl
,
0
,
pTgtMk
,
pwzLocation
);
IMoniker_Release
(
pTgtMk
);
IHlink_SetStringReference
(
hl
,
HLINKSETF_TARGET
,
pwzTarget
,
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