apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r170460 - /apr/apr/trunk/misc/win32/misc.c
Date Mon, 16 May 2005 21:39:09 GMT
Author: wrowe
Date: Mon May 16 14:39:08 2005
New Revision: 170460

URL: http://svn.apache.org/viewcvs?rev=170460&view=rev
Log:

  Hardcode a hack around WriteFile to the apr_dbg_log internal feature.
  [This function is only used for strace-like formatting.]

Modified:
    apr/apr/trunk/misc/win32/misc.c

Modified: apr/apr/trunk/misc/win32/misc.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/misc/win32/misc.c?rev=170460&r1=170459&r2=170460&view=diff
==============================================================================
--- apr/apr/trunk/misc/win32/misc.c (original)
+++ apr/apr/trunk/misc/win32/misc.c Mon May 16 14:39:08 2005
@@ -209,7 +209,7 @@
         (sprintf)(sbuf, "%08x %08x %08x %s() %s:%d\n",
                   (DWORD)ha, seq, GetCurrentThreadId(), fn, fl, ln);
         (EnterCriticalSection)(&cs);
-        (WriteFile)(fh, sbuf, strlen(sbuf), &wrote, NULL);
+        (WriteFile)(fh, sbuf, (DWORD)strlen(sbuf), &wrote, NULL);
         (LeaveCriticalSection)(&cs);
     } 
     else {
@@ -236,7 +236,7 @@
             (sprintf)(sbuf, "%08x %08x %08x %s(%s) %s:%d\n",
                       (DWORD*)*hv, seq, GetCurrentThreadId(), 
                       fn, dsc, fl, ln);
-            (WriteFile)(fh, sbuf, strlen(sbuf), &wrote, NULL);
+            (WriteFile)(fh, sbuf, (DWORD)strlen(sbuf), &wrote, NULL);
         } while (--nh);
         (LeaveCriticalSection)(&cs);
         va_end(a);



Mime
View raw message