/util/drmingw: 4bce3af77a9f: Use GetTempPath instead of GetWindo...
Daniel Atallah
datallah at pidgin.im
Mon Sep 10 12:11:13 EDT 2012
Changeset: 4bce3af77a9f16f89b338f019f627f10f11523ae
Author: Daniel Atallah <datallah at pidgin.im>
Date: 2012-09-08 12:49 -0400
Branch: default
URL: http://hg.pidgin.im/util/drmingw/rev/4bce3af77a9f
Description:
Use GetTempPath instead of GetWindowsDirectory for the fallback when we can't figure out the module path.
diffstat:
exchndl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (15 lines):
diff --git a/exchndl.c b/exchndl.c
--- a/exchndl.c
+++ b/exchndl.c
@@ -1231,9 +1231,9 @@ void OnStartup(void)
else
_tcsncat(szLogFileName, _T(".RPT"), bufSize - 1 - _tcslen(szLogFileName));
}
- else if(GetWindowsDirectory(szLogFileName, bufSize))
+ else if(GetTempPath(bufSize, szLogFileName))
{
- _tcsncat(szLogFileName, _T("\\EXCHNDL.RPT"), bufSize - 1 - _tcslen(szLogFileName));
+ _tcsncat(szLogFileName, _T("EXCHNDL.RPT"), bufSize - 1 - _tcslen(szLogFileName));
}
}
More information about the Commits
mailing list