hhctrl.ocx: Use HtmlHelpA in doWinMain.
This commit is contained in:
parent
90fcc09d92
commit
5d011551a3
|
@ -142,18 +142,11 @@ HWND WINAPI HtmlHelpA(HWND caller, LPCSTR filename, UINT command, DWORD data)
|
||||||
int WINAPI doWinMain(HINSTANCE hInstance, LPSTR szCmdLine)
|
int WINAPI doWinMain(HINSTANCE hInstance, LPSTR szCmdLine)
|
||||||
{
|
{
|
||||||
MSG msg;
|
MSG msg;
|
||||||
HHInfo *info;
|
|
||||||
LPWSTR filename = strdupAtoW(szCmdLine);
|
|
||||||
|
|
||||||
hh_process = TRUE;
|
hh_process = TRUE;
|
||||||
|
|
||||||
/* FIXME: Check szCmdLine for bad arguments */
|
/* FIXME: Check szCmdLine for bad arguments */
|
||||||
info = CreateHelpViewer(filename);
|
HtmlHelpA(GetDesktopWindow(), szCmdLine, HH_DISPLAY_TOPIC, 0);
|
||||||
hhctrl_free(filename);
|
|
||||||
if(!info)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
NavigateToChm(info, info->pCHMInfo->szFile, info->WinType.pszFile);
|
|
||||||
|
|
||||||
while (GetMessageW(&msg, 0, 0, 0))
|
while (GetMessageW(&msg, 0, 0, 0))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue