You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/05/29 12:36:40 UTC
svn commit: r779917 -
/commons/proper/daemon/trunk/src/native/nt/procrun/src/log.c
Author: mturk
Date: Fri May 29 10:36:40 2009
New Revision: 779917
URL: http://svn.apache.org/viewvc?rev=779917&view=rev
Log:
Save the error before calling any function that might reset it
Modified:
commons/proper/daemon/trunk/src/native/nt/procrun/src/log.c
Modified: commons/proper/daemon/trunk/src/native/nt/procrun/src/log.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/nt/procrun/src/log.c?rev=779917&r1=779916&r2=779917&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/nt/procrun/src/log.c (original)
+++ commons/proper/daemon/trunk/src/native/nt/procrun/src/log.c Fri May 29 10:36:40 2009
@@ -246,6 +246,7 @@
BOOL dolock = TRUE;
apx_logfile_st *lf = (apx_logfile_st *)hFile;
+ err = GetLastError(); /* save the last Error code */
if (IS_INVALID_HANDLE(lf))
lf = _st_sys_loghandle;
if (IS_INVALID_HANDLE(lf)) {
@@ -255,7 +256,6 @@
}
if (dwLevel < lf->dwLogLevel)
return 0;
- err = GetLastError(); /* save the last Error code */
if (f) {
f = (szFile + lstrlenA(szFile) - 1);
while(f != szFile && '\\' != *f && '/' != *f)