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
f4fe2b2d
Commit
f4fe2b2d
authored
Sep 12, 2017
by
Rafał Mużyło
Committed by
Alexandre Julliard
Sep 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itss: Fix handling non-ASCII content paths.
Signed-off-by:
Rafał Mużyło
<
galtgendo@o2.pl
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aac8d46c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
chm_lib.c
dlls/itss/chm_lib.c
+4
-9
No files found.
dlls/itss/chm_lib.c
View file @
f4fe2b2d
...
@@ -935,15 +935,10 @@ static UInt64 _chm_parse_cword(UChar **pEntry)
...
@@ -935,15 +935,10 @@ static UInt64 _chm_parse_cword(UChar **pEntry)
/* parse a utf-8 string into an ASCII char buffer */
/* parse a utf-8 string into an ASCII char buffer */
static
BOOL
_chm_parse_UTF8
(
UChar
**
pEntry
,
UInt64
count
,
WCHAR
*
path
)
static
BOOL
_chm_parse_UTF8
(
UChar
**
pEntry
,
UInt64
count
,
WCHAR
*
path
)
{
{
/* MJM - Modified to return real Unicode strings */
DWORD
length
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
char
*
)
*
pEntry
,
count
,
path
,
CHM_MAX_PATHLEN
);
while
(
count
!=
0
)
path
[
length
]
=
'\0'
;
{
*
pEntry
+=
count
;
*
path
++
=
(
*
(
*
pEntry
)
++
);
return
!!
length
;
--
count
;
}
*
path
=
'\0'
;
return
TRUE
;
}
}
/* parse a PMGL entry into a chmUnitInfo struct; return 1 on success. */
/* parse a PMGL entry into a chmUnitInfo struct; return 1 on success. */
...
...
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