Here is a relatively painless solution:
HTBrowse.c, line 235:
replace
PUBLIC LineMode * Context_getLineMode(HTRequest * request)
{
return ((Context *) HTRequest_context(request))->lm;
}
by
PUBLIC LineMode * Context_getLineMode(HTRequest * request)
{
Context *pContext = (Context *) HTRequest_context(request);
return pContext ? pContext -> lm : NULL;
}
I.e. do NOT assume (as in this case it is not true) that the context is set.
www.c line 619:
replace
ret = Lib_ModalDialogBoxParam(HInstance, MAKEINTRESOURCE(resource),
pView->hWnd,
(DLGPROC)AlertDialogProc, (LPARAM)pParms);
by
ret = Lib_ModalDialogBoxParam(HInstance, MAKEINTRESOURCE(resource),
pView ? pView->hWnd : GetActiveWindow(),
(DLGPROC)AlertDialogProc, (LPARAM)pParms);
I.e. do NOT asssume thet pView (the lm, returned above) is set. If it is
not, get the currently
active window's handle. The dialog box handler uses this window as the
parent of the
modal dialog. {This *probably* would work in general...]
Hope this helps,
Joseph Janos
Forwarded message 1
At 10:09 1/20/98 -0800, Joseph Janos wrote:
>Platform: NT/4.0 Server, patch level 3, VC++/5.0
>WWW Library: 5.1e
Hmm, good point - unfortunately I have very little time to try and fix it
right now - have you found a solution?
Thanks,
Henrik
--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk