From 0beb88760b4c258b89daf5791069dc885c0c27aa Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 19 May 2013 11:36:36 +0200 Subject: - added hook for GetModuleFileName - downloads are now identifiable by ID - fixed a bug with the multi-select categories list - fixed a problem with the nexus-login code breaking support for certain passwords - fixed a bug where detection of archive invalidation didn't work correctly - fixed ncc plugin trying to handle archives that aren't actually fomods --- src/logbuffer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/logbuffer.cpp') diff --git a/src/logbuffer.cpp b/src/logbuffer.cpp index c891f4c5..d563f796 100644 --- a/src/logbuffer.cpp +++ b/src/logbuffer.cpp @@ -65,6 +65,8 @@ void LogBuffer::write() const return; } + DWORD lastError = ::GetLastError(); + QFile file(m_OutFileName); if (!file.open(QIODevice::WriteOnly)) { reportError(tr("failed to write log to %1: %2").arg(m_OutFileName).arg(file.errorString())); @@ -77,6 +79,7 @@ void LogBuffer::write() const file.write(m_Messages.at(i % m_Messages.size()).toUtf8()); file.write("\r\n"); } + ::SetLastError(lastError); } -- cgit v1.3.1