summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-05-27 09:54:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-05-27 09:54:42 +0000
commitccf1e327243dc593c5a771b60d1efbf71fdebf39 (patch)
treea912a71acc7821cbf56c7c05c75d32fbd36bf364
parent75b77dacd7ebd005fb10746622ba7ad03f40dd19 (diff)
bunch of minor bugfixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@195 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/Svc_vi/CVersionInfo.cpp8
-rw-r--r--plugins/Svc_vi/dlgHandlers.cpp6
-rw-r--r--plugins/Svc_vi/version.h2
3 files changed, 12 insertions, 4 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)
diff --git a/plugins/Svc_vi/dlgHandlers.cpp b/plugins/Svc_vi/dlgHandlers.cpp
index 520ee97ceb..937cdbef18 100644
--- a/plugins/Svc_vi/dlgHandlers.cpp
+++ b/plugins/Svc_vi/dlgHandlers.cpp
@@ -559,7 +559,11 @@ INT_PTR CALLBACK DialogBoxProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam
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();
}
diff --git a/plugins/Svc_vi/version.h b/plugins/Svc_vi/version.h
index 13ab339f7c..94286db8dc 100644
--- a/plugins/Svc_vi/version.h
+++ b/plugins/Svc_vi/version.h
@@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define __MAJOR_VERSION 1
#define __MINOR_VERSION 5
#define __RELEASE_NUM 0
-#define __BUILD_NUM 1
+#define __BUILD_NUM 2
#define VERSION PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM)