summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;