OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e5c279
)
Disable logging when m_bLogging off (I missed this earlier).
author
Perry Rapp
<elsapo@users.sourceforge.net>
Sun, 9 Feb 2003 19:00:01 +0000
(19:00 +0000)
committer
Perry Rapp
<elsapo@users.sourceforge.net>
Sun, 9 Feb 2003 19:00:01 +0000
(19:00 +0000)
Src/Common/LogFile.cpp
patch
|
blob
|
history
diff --git
a/Src/Common/LogFile.cpp
b/Src/Common/LogFile.cpp
index
f94d551
..
ba6cc4a
100644
(file)
--- a/
Src/Common/LogFile.cpp
+++ b/
Src/Common/LogFile.cpp
@@
-59,7
+59,10
@@
CLogFile::~CLogFile()
void CLogFile::Write(LPCTSTR pszFormat, ...)
{
- TCHAR buf[2048]=_T("");
+ if (!m_bEnabled)
+ return;
+
+ TCHAR buf[2048]=_T("");
va_list arglist;
va_start(arglist, pszFormat);
if (pszFormat != NULL)