]> granicus.if.org Git - apache/commitdiff
Damnable casts
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 3 May 2001 04:15:21 +0000 (04:15 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 3 May 2001 04:15:21 +0000 (04:15 +0000)
Submitted by:  Jessie Oberreuter <jessieo@westside.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88980 13f79535-47bb-0310-9956-ffa450edef68

modules/arch/win32/mod_isapi.c

index 2ce6bc28336879ab56f204325b4d125417bf162c..5753afbeaf1df7a67f624175b744a0198ceaba8b 100644 (file)
@@ -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
      */