diff options
author | George Hazan <george.hazan@gmail.com> | 2012-05-27 09:54:42 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-05-27 09:54:42 +0000 |
commit | ccf1e327243dc593c5a771b60d1efbf71fdebf39 (patch) | |
tree | a912a71acc7821cbf56c7c05c75d32fbd36bf364 /plugins/Svc_vi/CVersionInfo.cpp | |
parent | 75b77dacd7ebd005fb10746622ba7ad03f40dd19 (diff) |
bunch of minor bugfixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@195 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Svc_vi/CVersionInfo.cpp')
-rw-r--r-- | plugins/Svc_vi/CVersionInfo.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/Svc_vi/CVersionInfo.cpp b/plugins/Svc_vi/CVersionInfo.cpp index 8d49f8a3dd..f8b89d81de 100644 --- a/plugins/Svc_vi/CVersionInfo.cpp +++ b/plugins/Svc_vi/CVersionInfo.cpp @@ -81,7 +81,7 @@ void FillLocalTime(std::tstring &output, FILETIME *fileTime) break;
}
- wsprintf(tzOffset, _T("UTC %+02d:%02d"), offset / 60, offset % 60);
+ mir_sntprintf(tzOffset, SIZEOF(tzOffset), _T("UTC %+02d:%02d"), offset / 60, offset % 60);
output += _T(" (") + std::tstring(tzOffset) + _T(")");
}
@@ -1190,7 +1190,11 @@ void CVersionInfo::PrintInformationsToClipboard(bool showLog) lptstrCopy[length] = '\0';
GlobalUnlock(hData);
//Now set the clipboard data.
- SetClipboardData(CF_TEXT, hData);
+ #if defined( _UNICODE )
+ SetClipboardData(CF_UNICODETEXT, hData);
+ #else
+ SetClipboardData(CF_TEXT, hData);
+ #endif
//Remove the lock on the clipboard.
CloseClipboard();
if (showLog)
|