Jacek Caban : hhctrl.ocx: Use HtmlHelpA in doWinMain.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Feb 28 08:19:11 CST 2007
Module: wine
Branch: master
Commit: 5d011551a315ec6bb0985cd723ca0b94cb5d4b0e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5d011551a315ec6bb0985cd723ca0b94cb5d4b0e
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Feb 28 03:55:00 2007 +0100
hhctrl.ocx: Use HtmlHelpA in doWinMain.
---
dlls/hhctrl.ocx/hhctrl.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/dlls/hhctrl.ocx/hhctrl.c b/dlls/hhctrl.ocx/hhctrl.c
index 0c50aba..ec3cf74 100644
--- a/dlls/hhctrl.ocx/hhctrl.c
+++ b/dlls/hhctrl.ocx/hhctrl.c
@@ -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))
{
More information about the wine-cvs
mailing list