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
8cef0863
Commit
8cef0863
authored
Feb 28, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Don't use doWinMain in HtmlHelpW.
parent
ae9c043d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
+19
-20
hhctrl.c
dlls/hhctrl.ocx/hhctrl.c
+19
-20
No files found.
dlls/hhctrl.ocx/hhctrl.c
View file @
8cef0863
...
...
@@ -25,8 +25,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
htmlhelp
);
int
WINAPI
doWinMain
(
HINSTANCE
hInstance
,
LPSTR
szCmdLine
);
HINSTANCE
hhctrl_hinstance
;
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstance
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
...
...
@@ -87,33 +85,34 @@ static const char *command_to_string(UINT command)
HWND
WINAPI
HtmlHelpW
(
HWND
caller
,
LPCWSTR
filename
,
UINT
command
,
DWORD
data
)
{
CHAR
*
file
=
NULL
;
TRACE
(
"(%p, %s, command=%s, data=%d)
\n
"
,
caller
,
debugstr_w
(
filename
),
command_to_string
(
command
),
data
);
if
(
filename
)
switch
(
command
)
{
DWORD
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
filename
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
case
HH_DISPLAY_TOPIC
:
case
HH_DISPLAY_TOC
:
case
HH_DISPLAY_SEARCH
:
case
HH_HELP_CONTEXT
:
{
HHInfo
*
info
;
BOOL
res
;
file
=
hhctrl_alloc
(
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
filename
,
-
1
,
file
,
len
,
NULL
,
NULL
);
}
FIXME
(
"Not all HH cases handled correctly
\n
"
);
switch
(
command
)
{
case
HH_DISPLAY_TOPIC
:
case
HH_DISPLAY_TOC
:
case
HH_DISPLAY_SEARCH
:
case
HH_HELP_CONTEXT
:
FIXME
(
"Not all HH cases handled correctly
\n
"
);
doWinMain
(
GetModuleHandleW
(
NULL
),
file
);
break
;
default:
FIXME
(
"HH case %s not handled.
\n
"
,
command_to_string
(
command
));
info
=
CreateHelpViewer
(
filename
);
res
=
NavigateToChm
(
info
,
info
->
pCHMInfo
->
szFile
,
info
->
WinType
.
pszFile
);
if
(
!
res
)
ReleaseHelpViewer
(
info
);
return
NULL
;
/* FIXME */
}
hhctrl_free
(
file
);
default:
FIXME
(
"HH case %s not handled.
\n
"
,
command_to_string
(
command
));
}
return
0
;
}
...
...
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