summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2005-05-16 21:39:08 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2005-05-16 21:39:08 +0000
commitd6cee65346572603318d5f486de300ed6732f431 (patch)
tree41238caab473ee7e28890a4fab9369dd537aab34 /misc
parentec846b8301ce848c7b1dd78513ba76b9793d59af (diff)
downloadlibapr-d6cee65346572603318d5f486de300ed6732f431.tar.gz
Hardcode a hack around WriteFile to the apr_dbg_log internal feature.
[This function is only used for strace-like formatting.] git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@170460 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r--misc/win32/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/win32/misc.c b/misc/win32/misc.c
index 5215285aa..eaf896a28 100644
--- a/misc/win32/misc.c
+++ b/misc/win32/misc.c
@@ -209,7 +209,7 @@ APR_DECLARE_NONSTD(HANDLE) apr_dbg_log(char* fn, HANDLE ha, char* fl, int ln,
(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 @@ APR_DECLARE_NONSTD(HANDLE) apr_dbg_log(char* fn, HANDLE ha, char* fl, int ln,
(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);