Re: 2 small bugs in HTEvntrg.c

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 UTC