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
e18ddbc0
Commit
e18ddbc0
authored
Mar 02, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Correctly handle URLs in SetChmPath.
parent
1bfbcefb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
chm.c
dlls/hhctrl.ocx/chm.c
+18
-0
No files found.
dlls/hhctrl.ocx/chm.c
View file @
e18ddbc0
...
...
@@ -249,11 +249,29 @@ done:
return
SUCCEEDED
(
hr
);
}
static
LPCWSTR
skip_schema
(
LPCWSTR
url
)
{
static
const
WCHAR
its_schema
[]
=
{
'i'
,
't'
,
's'
,
':'
};
static
const
WCHAR
msits_schema
[]
=
{
'm'
,
's'
,
'-'
,
'i'
,
't'
,
's'
,
':'
};
static
const
WCHAR
mk_schema
[]
=
{
'm'
,
'k'
,
':'
,
'@'
,
'M'
,
'S'
,
'I'
,
'T'
,
'S'
,
't'
,
'o'
,
'r'
,
'e'
,
':'
};
if
(
!
strncmpiW
(
its_schema
,
url
,
sizeof
(
its_schema
)
/
sizeof
(
WCHAR
)))
return
url
+
sizeof
(
its_schema
)
/
sizeof
(
WCHAR
);
if
(
!
strncmpiW
(
msits_schema
,
url
,
sizeof
(
msits_schema
)
/
sizeof
(
WCHAR
)))
return
url
+
sizeof
(
msits_schema
)
/
sizeof
(
WCHAR
);
if
(
!
strncmpiW
(
mk_schema
,
url
,
sizeof
(
mk_schema
)
/
sizeof
(
WCHAR
)))
return
url
+
sizeof
(
mk_schema
)
/
sizeof
(
WCHAR
);
return
url
;
}
void
SetChmPath
(
ChmPath
*
file
,
LPCWSTR
base_file
,
LPCWSTR
path
)
{
LPCWSTR
ptr
;
static
const
WCHAR
separatorW
[]
=
{
':'
,
':'
,
0
};
path
=
skip_schema
(
path
);
ptr
=
strstrW
(
path
,
separatorW
);
if
(
ptr
)
{
WCHAR
chm_file
[
MAX_PATH
];
...
...
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