summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/Scanner.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-05 18:24:52 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-05 18:24:52 +0000
commit87cb6f6dc1904efe8e398bcdf6ad804c9ad60622 (patch)
treea9fd20cb75c4a60f3d0350106ef3d89f8e00918a /plugins/PluginUpdater/src/Scanner.cpp
parent47bb997ba04b76f705e3a63c593bad0a4ebc2975 (diff)
fix for eating one char in DLL name
git-svn-id: http://svn.miranda-ng.org/main/trunk@3899 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Scanner.cpp')
-rw-r--r--plugins/PluginUpdater/src/Scanner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/PluginUpdater/src/Scanner.cpp b/plugins/PluginUpdater/src/Scanner.cpp
index fe0a027b42..86c0acceb3 100644
--- a/plugins/PluginUpdater/src/Scanner.cpp
+++ b/plugins/PluginUpdater/src/Scanner.cpp
@@ -177,7 +177,7 @@ static void ScanFolder(const TCHAR *tszFolder, size_t cbBaseLen, int level, cons
continue;
// calculate the current file's relative name and store it into tszNewName
- TCHAR tszNewName[MAX_PATH], key[MAX_PATH];
+ TCHAR tszNewName[MAX_PATH];
if ( !CheckFileRename(ffd.cFileName, tszNewName)) {
if (level == 0)
_tcscpy(tszNewName, ffd.cFileName);
@@ -199,7 +199,7 @@ static void ScanFolder(const TCHAR *tszFolder, size_t cbBaseLen, int level, cons
if (p[-1] != 'w' && p[-1] != 'W')
continue;
- int iPos = int(p - key)-1;
+ int iPos = int(p - tszNewName)-1;
strdel(p-1, 1);
if ((item = hashes.find(&tmp)) == NULL)
continue;