hhctrl.ocx: Use HtmlHelpA in doWinMain.

This commit is contained in:
Jacek Caban 2007-02-28 03:55:00 +01:00 committed by Alexandre Julliard
parent 90fcc09d92
commit 5d011551a3
1 changed files with 1 additions and 8 deletions

View File

@ -142,18 +142,11 @@ HWND WINAPI HtmlHelpA(HWND caller, LPCSTR filename, UINT command, DWORD data)
int WINAPI doWinMain(HINSTANCE hInstance, LPSTR szCmdLine)
{
MSG msg;
HHInfo *info;
LPWSTR filename = strdupAtoW(szCmdLine);
hh_process = TRUE;
/* FIXME: Check szCmdLine for bad arguments */
info = CreateHelpViewer(filename);
hhctrl_free(filename);
if(!info)
return -1;
NavigateToChm(info, info->pCHMInfo->szFile, info->WinType.pszFile);
HtmlHelpA(GetDesktopWindow(), szCmdLine, HH_DISPLAY_TOPIC, 0);
while (GetMessageW(&msg, 0, 0, 0))
{