From 5838379be3bcf5ab24c5e60c2f3c57772c3e975e Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 8 Nov 2014 14:59:19 +0000 Subject: fixed OS version detection git-svn-id: http://svn.miranda-ng.org/main/trunk@10927 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CrashDumper/src/utils.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/CrashDumper/src') 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; -- cgit v1.2.3