mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
hhctrl.ocx: Use HtmlHelpA in doWinMain.
This commit is contained in:
parent
90fcc09d92
commit
5d011551a3
1 changed files with 1 additions and 8 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue