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
f0d4fa04
Commit
f0d4fa04
authored
Apr 11, 2005
by
Mike Hearn
Committed by
Alexandre Julliard
Apr 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only do unicode conversion in HTML Help control when filename is
specified.
parent
499a887d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
hhctrl.c
dlls/hhctrl.ocx/hhctrl.c
+9
-5
No files found.
dlls/hhctrl.ocx/hhctrl.c
View file @
f0d4fa04
...
...
@@ -32,7 +32,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
HWND
WINAPI
HtmlHelpW
(
HWND
caller
,
LPCWSTR
filename
,
UINT
command
,
DWORD
data
)
{
FIXME
(
"(%p, %s,
%d,
%ld): stub
\n
"
,
caller
,
debugstr_w
(
filename
),
command
,
data
);
FIXME
(
"(%p, %s,
command=%d, data=
%ld): stub
\n
"
,
caller
,
debugstr_w
(
filename
),
command
,
data
);
/* if command is HH_DISPLAY_TOPIC just display an informative message for now */
if
(
command
==
HH_DISPLAY_TOPIC
)
...
...
@@ -45,12 +45,16 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD data)
HWND
WINAPI
HtmlHelpA
(
HWND
caller
,
LPCSTR
filename
,
UINT
command
,
DWORD
data
)
{
WCHAR
*
wfile
=
NULL
;
DWORD
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
filename
,
-
1
,
NULL
,
0
);
HWND
result
;
wfile
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
filename
,
-
1
,
wfile
,
len
);
if
(
filename
)
{
DWORD
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
filename
,
-
1
,
NULL
,
0
);
wfile
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
filename
,
-
1
,
wfile
,
len
);
}
result
=
HtmlHelpW
(
caller
,
wfile
,
command
,
data
);
HeapFree
(
GetProcessHeap
(),
0
,
wfile
);
...
...
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