W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1996

Re: 2 small bugs in HTEvntrg.c

From: GunnarRønning <gunnarr@ifi.uio.no>
Date: Tue, 19 Mar 1996 12:49:48 +0100
Message-Id: <199603191149.16305.skrymir.ifi.uio.no@ifi.uio.no>
To: Erik Selberg <selberg@cs.washington.edu>
Cc: frystyk@w3.org, www-lib@w3.org
Erik Selberg <selberg@cs.washington.edu> said:

> Well, I finally upgraded to 4.0D and found two bugs.

So did we and our application is now running with the same libwww
interface under Unix and Windows 95. The HTEvent_loop function for Win95
did however not use the HTEndLoop variable.  A fix is appended.

	Gunnar

*** HTEvntrg.c~	Fri Feb  9 20:56:56 1996
--- HTEvntrg.c	Tue Mar 19 12:45:12 1996
***************
*** 599,606 ****
  PUBLIC int HTEvent_Loop( HTRequest * theRequest )
  {
      MSG msg;
- #ifdef WWW_WIN_CONSOLE
      HTEndLoop = 0;
      while (!HTEndLoop) {
      	DWORD toRead;
      	if (console_in_use) {
--- 599,606 ----
  PUBLIC int HTEvent_Loop( HTRequest * theRequest )
  {
      MSG msg;
      HTEndLoop = 0;
+ #ifdef WWW_WIN_CONSOLE
      while (!HTEndLoop) {
      	DWORD toRead;
      	if (console_in_use) {
***************
*** 626,632 ****
  	}
      }
  #else
!     while (GetMessage(&msg,0,0,0)) {
  	    TranslateMessage(&msg);
  	    DispatchMessage(&msg);
      }
--- 626,632 ----
  	}
      }
  #else
!     while (!HTEndLoop && GetMessage(&msg,0,0,0)) {
  	    TranslateMessage(&msg);
  	    DispatchMessage(&msg);
      }
Received on Tuesday, 19 March 1996 06:49:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:26 GMT