Re: Bomb in linemode browser if rule file is given in interactive mode.

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

  • From: Henrik Frystyk Nielsen <frystyk@w3.org>
  • Date: 22 Jan 98 13:13:25
  • Subject: e: Bomb in linemode browser if rule file is given in interactive mode.
  • To: Joseph Janos" <JJANOS@us.oracle.com>, www-lib-bugs@w3.org, www-lib@w3.org
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

Received on Friday, 23 January 1998 09:43:24 UTC