833a834,839
> 	  if (channel->event_mask) {
> 	    if (channel->debug)
> 	      g_print ("g_io_win32_prepare: SetEvent(%#x)\n",
> 	               watch->pollfd.fd);
> 	    SetEvent ((HANDLE) watch->pollfd.fd);
> 	  }
885c891
< 	  WSAEnumNetworkEvents (channel->fd, 0, &events);
---
> 	  WSAEnumNetworkEvents (channel->fd, (HANDLE) watch->pollfd.fd, &events);
902a909,911
> 	    }
> 	  else
> 	    {
904c913
< 		g_print ("g_io_win32_check: ResetEvent(%#x)\n",
---
> 		g_print ("g_io_win32_check: SetEvent(%#x)\n",
906c915
< 	      ResetEvent ((HANDLE) watch->pollfd.fd);
---
> 	      SetEvent ((HANDLE) watch->pollfd.fd);
