Subject: winex/dlls/wininet internet.c,1.20,1.21 utility.c,1.8,1.9Update of /var/lib/cvsd/cvsroot/winex/dlls/wininet
In directory agravaine:/tmp/cvs-serv16781/dlls/wininet
Modified Files:
internet.c utility.c
Log Message:
Fix intermittent problem with async requests (such as callbacks) that
were silently dropped, and a fixme that was missing a terminating newline.
Index: internet.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/wininet/internet.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- internet.c 6 Nov 2006 15:29:15 -0000 1.20
+++ internet.c 25 May 2007 21:47:16 -0000 1.21
@@ -2105,6 +2105,12 @@
(LPTHREAD_START_ROUTINE)INTERNET_WorkerThreadFunc, NULL, 0, &dwTID)))
{
InterlockedDecrement(&dwNumThreads);
+ WARN("failed to create new async thread\n");
+
+ /* if threads exist, insert work request anyway,
+ * process it whenever an existing thread goes idle */
+ if (dwNumThreads) goto insert;
+
INTERNET_SetLastError(ERROR_INTERNET_ASYNC_THREAD_FAILED);
goto lerror;
}
@@ -2113,6 +2119,7 @@
CloseHandle(hThread);
}
+insert:
bSuccess = TRUE;
INTERNET_InsertWorkRequest(lpWorkRequest);
SetEvent(hWorkEvent);
Index: utility.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/wininet/utility.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- utility.c 22 Feb 2007 23:29:12 -0000 1.8
+++ utility.c 25 May 2007 21:47:16 -0000 1.9
@@ -210,7 +210,7 @@
memcpy( statusCopy, lpvStatusInfo, dwStatusInfoLength );
}
else
- FIXME( "lpvStatusInfo is NULL or length is 0" );
+ FIXME( "lpvStatusInfo is NULL or length is 0\n" );
workRequest.asyncall = SENDCALLBACK;
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.