Commit in reactos/lib/msafd/misc on MAIN
dllmain.c+121.30 -> 1.31
Handle AFD_EVENT_CONNECT notifications

reactos/lib/msafd/misc
dllmain.c 1.30 -> 1.31
diff -u -r1.30 -r1.31
--- dllmain.c	26 Dec 2004 14:55:51 -0000	1.30
+++ dllmain.c	26 Dec 2004 15:04:33 -0000	1.31
@@ -1755,6 +1755,18 @@
 					Socket->SharedData.AsyncDisabledEvents |= FD_WRITE;
 				}
 				break;
+
+			case AFD_EVENT_CONNECT:
+				if (0 != (Socket->SharedData.AsyncEvents & FD_CONNECT) && 0 == (Socket->SharedData.AsyncDisabledEvents & FD_CONNECT)) {
+					/* Make the Notifcation */
+					(Upcalls.lpWPUPostMessage)(Socket->SharedData.hWnd,
+								   Socket->SharedData.wMsg,
+								   Socket->Handle,
+								   WSAMAKESELECTREPLY(FD_CONNECT, 0));
+					/* Disable this event forever; */
+					Socket->SharedData.AsyncDisabledEvents |= FD_CONNECT;
+				}
+				break;
 				
 			case AFD_EVENT_ACCEPT:
 				if (0 != (Socket->SharedData.AsyncEvents & FD_ACCEPT) && 0 == (Socket->SharedData.AsyncDisabledEvents & FD_ACCEPT)) {
CVSspam 0.2.8