diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/Svc_vi | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Svc_vi')
-rw-r--r-- | plugins/Svc_vi/utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Svc_vi/utils.cpp b/plugins/Svc_vi/utils.cpp index 1111bc96f9..9a29b45fdf 100644 --- a/plugins/Svc_vi/utils.cpp +++ b/plugins/Svc_vi/utils.cpp @@ -51,10 +51,10 @@ int SplitStringInfo(const TCHAR *szWholeText, TCHAR *szStartText, TCHAR *szEndTe const TCHAR *pos = _tcschr(szWholeText, '|');
if (pos) {
size_t index = pos - szWholeText;
- lstrcpyn(szStartText, szWholeText, index);
+ lstrcpyn(szStartText, szWholeText, (int)index);
szStartText[index] = '\0';
StrTrim(szStartText, _T(" "));
- lstrcpyn(szEndText, pos + 1, _tcslen(pos)); //copies the \0 as well ... :)
+ lstrcpyn(szEndText, pos + 1, (int)_tcslen(pos)); //copies the \0 as well ... :)
StrTrim(szEndText, _T(" "));
}
else szStartText[0] = szEndText[0] = '\0';
@@ -171,7 +171,7 @@ PLUGININFOEX *GetPluginInfo(const TCHAR *filename,HINSTANCE *hPlugin) }
wsprintf(szPluginPath, _T("%s\\Plugins\\%s"), szMirandaPath, filename);
*hPlugin=LoadLibrary(szPluginPath);
- if(*hPlugin==NULL) return NULL;
+ if (*hPlugin==NULL) return NULL;
MirandaPluginInfo=(PLUGININFOEX *(*)(DWORD))GetProcAddress(*hPlugin,"MirandaPluginInfo");
if(MirandaPluginInfo==NULL) {FreeLibrary(*hPlugin); *hPlugin=NULL; return NULL;}
pPlugInfo=MirandaPluginInfo(mirandaVersion);
|