Commit 90fcc09d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

hhctrl.ocx: Call PostQuitMessage only in hh.exe process.

parent 8cef0863
......@@ -631,7 +631,8 @@ static LRESULT CALLBACK Help_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPA
ReleaseHelpViewer((HHInfo *)GetWindowLongPtrW(hWnd, GWLP_USERDATA));
return 0;
case WM_DESTROY:
PostQuitMessage(0);
if(hh_process)
PostQuitMessage(0);
break;
default:
......
......@@ -26,6 +26,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
HINSTANCE hhctrl_hinstance;
BOOL hh_process;
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, LPVOID lpvReserved)
{
......@@ -144,6 +145,8 @@ int WINAPI doWinMain(HINSTANCE hInstance, LPSTR szCmdLine)
HHInfo *info;
LPWSTR filename = strdupAtoW(szCmdLine);
hh_process = TRUE;
/* FIXME: Check szCmdLine for bad arguments */
info = CreateHelpViewer(filename);
hhctrl_free(filename);
......
......@@ -142,5 +142,6 @@ static inline LPWSTR strdupAtoW(LPCSTR str)
}
extern HINSTANCE hhctrl_hinstance;
extern BOOL hh_process;
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment