http://bugs.winehq.org/show_bug.cgi?id=19852
Summary: AsyncHttpEndRequestProc was called twice Product: Wine Version: unspecified Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wininet AssignedTo: wine-bugs@winehq.org ReportedBy: leeight@gmail.com
AsyncHttpEndRequestProc -> HTTP_HttpEndRequestW -> HTTP_GetResponseHeaders
was called twice, which cause my application crashed.
the attachment is my debug log, and the temporary solution is change AsyncHttpEndRequestProc like this
static void AsyncHttpEndRequestProc(WORKREQUEST *work) { struct WORKREQ_HTTPENDREQUESTW const *req = &work->u.HttpEndRequestW; http_request_t *lpwhr = (http_request_t*)work->hdr;
TRACE("%p\n", lpwhr);
if(lpwhr->lpszRawHeaders == NULL){ // add this line FIXME("[%p]call HTTP_GetResponseHeaders", (lpwhr)); HTTP_HttpEndRequestW(lpwhr, req->dwFlags, req->dwContext); } // add this line }