diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-11-08 14:59:19 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-11-08 14:59:19 +0000 |
commit | 5838379be3bcf5ab24c5e60c2f3c57772c3e975e (patch) | |
tree | 6d3eae68a48a083ebb84b625ac17d47f1d560187 /plugins/CrashDumper | |
parent | 1f85fe355cb90bee5c377d227057f7a723dcb443 (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.cpp | 5 |
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;
|