summaryrefslogtreecommitdiff
path: root/plugins/DbEditorPP/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-18 13:21:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-18 13:21:39 +0000
commit6f8ff613bd81e4592173e9039ec0dc6f01ce5e6b (patch)
treeb2889bbf91a505107d1cf2c3b907f853451be586 /plugins/DbEditorPP/src/main.cpp
parent1bb9a86b26d3a9964844d42fa25690ce0a028258 (diff)
dbeditor++ - unified project
git-svn-id: http://svn.miranda-ng.org/main/trunk@14244 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbEditorPP/src/main.cpp')
-rw-r--r--plugins/DbEditorPP/src/main.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/DbEditorPP/src/main.cpp b/plugins/DbEditorPP/src/main.cpp
index 5a4e023bd8..0ddb715f5d 100644
--- a/plugins/DbEditorPP/src/main.cpp
+++ b/plugins/DbEditorPP/src/main.cpp
@@ -1,4 +1,4 @@
-#include "headers.h"
+#include "stdafx.h"
HINSTANCE hInst = NULL;
@@ -15,6 +15,8 @@ MCONTACT hRestore;
extern HWND hwnd2watchedVarsWindow;
+#pragma comment(lib, "shlwapi.lib")
+
//========================
// MirandaPluginInfo
//========================
@@ -320,12 +322,9 @@ int setNumericValue(MCONTACT hContact, const char *module, const char *setting,
int IsRealUnicode(TCHAR *value)
{
-#ifdef _UNICODE
BOOL nonascii = 0;
WideCharToMultiByte(Langpack_GetDefaultCodePage(), WC_NO_BEST_FIT_CHARS, value, -1, NULL, 0, NULL, &nonascii);
return nonascii;
-#endif
- return 0;
}
@@ -496,7 +495,7 @@ int GetContactName(MCONTACT hContact, const char *proto, TCHAR *value, int maxle
GetValue(hContact, szProto, "FirstName", name, SIZEOF(name));
- int len = mir_tstrlen(name);
+ int len = (int)mir_tstrlen(name);
if (len + 2 < SIZEOF(name)) {
if (len)
mir_tstrncat(name, _T(" "), SIZEOF(name));