From afec1645f64e7f8c9d16652ec93b9d8cacb42863 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Thu, 3 May 2001 04:15:21 +0000 Subject: [PATCH] Damnable casts Submitted by: Jessie Oberreuter git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88980 13f79535-47bb-0310-9956-ffa450edef68 --- modules/arch/win32/mod_isapi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index 2ce6bc2833..5753afbeaf 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -655,7 +655,7 @@ BOOL WINAPI WriteClient (HCONN ConnID, LPVOID Buffer, LPDWORD lpwdwBytes, ; /* XXX: Fake it */ bb = apr_brigade_create(r->pool); - b = apr_bucket_transient_create(Buffer, (apr_size_t)lpwdwBytes); + b = apr_bucket_transient_create(Buffer, *lpwdwBytes); APR_BRIGADE_INSERT_TAIL(bb, b); b = apr_bucket_eos_create(); APR_BRIGADE_INSERT_TAIL(bb, b); @@ -728,6 +728,10 @@ static apr_off_t SendResponseHeaderEx(isapi_cid *cid, const char *stat, /* Headers will actually go when they are good and ready */ + /* If all went well, tell the caller we consumed the headers complete */ + if (!termch) + return(headlen); + /* Any data left is sent directly by the caller, all we * give back is the size of the headers we consumed */ -- 2.50.1