summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-11-08 14:59:19 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-11-08 14:59:19 +0000
commit5838379be3bcf5ab24c5e60c2f3c57772c3e975e (patch)
tree6d3eae68a48a083ebb84b625ac17d47f1d560187 /plugins/CrashDumper
parent1f85fe355cb90bee5c377d227057f7a723dcb443 (diff)
fixed OS version detection
git-svn-id: http://svn.miranda-ng.org/main/trunk@10927 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper')
-rw-r--r--plugins/CrashDumper/src/utils.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/CrashDumper/src/utils.cpp b/plugins/CrashDumper/src/utils.cpp
index 83e99f25c9..1647def7a1 100644
--- a/plugins/CrashDumper/src/utils.cpp
+++ b/plugins/CrashDumper/src/utils.cpp
@@ -77,12 +77,15 @@ void GetOSDisplayString(CMString &buffer)
}
if (pGetProductInfo)
- pGetProductInfo(6, 0, 0, 0, &dwType);
+ pGetProductInfo(osvi.dwMajorVersion, osvi.dwMinorVersion, 0, 0, &dwType);
switch (dwType) {
case PRODUCT_ULTIMATE:
buffer.Append(TEXT("Ultimate Edition"));
break;
+ case PRODUCT_PROFESSIONAL:
+ buffer.Append(TEXT("Professional Edition"));
+ break;
case PRODUCT_HOME_PREMIUM:
buffer.Append(TEXT("Home Premium Edition"));
break;