summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-02-05 10:04:27 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-02-05 10:04:27 +0000
commit33f1eeb80fd7096d978f623d76e7b06068459c58 (patch)
treee44a6cda533c24acd4155b21c34a21a930717312
parentb453ec4b2f96e1841911b22dba7c92050af64437 (diff)
fixed version compare
git-svn-id: http://svn.miranda-ng.org/main/trunk@8041 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/PackUpdater/Src/Utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/PackUpdater/Src/Utils.cpp b/plugins/PackUpdater/Src/Utils.cpp
index 6c67bab25e..b6d7ec0eec 100644
--- a/plugins/PackUpdater/Src/Utils.cpp
+++ b/plugins/PackUpdater/Src/Utils.cpp
@@ -177,7 +177,7 @@ INT getVer(const TCHAR* verStr)
{
INT v1 = 0, v2 = 0, v3 = 0, v4 = 0;
_stscanf(verStr, _T("%d.%d.%d.%d"), &v1, &v2, &v3, &v4);
- return v1*1000000 + v2*10000 + v3*1000 + v4;
+ return v1*10000000 + v2*100000 + v3*1000 + v4;
}
static void CheckUpdates(void *)