From 36bc29769b7f1b56ed8680c2c52b3ad8a4fa5cac Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Wed, 8 Jun 2005 18:35:43 +0000 Subject: [PATCH] Add Language to the values we can query with MsiGetProductInfo. --- dlls/msi/msi.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index c4ccd88c51d..90fa1219a8c 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -517,6 +517,10 @@ UINT WINAPI MsiGetProductInfoW(LPCWSTR szProduct, LPCWSTR szAttribute, {'P','r','o','d','u','c','t','V','e','r','s','i','o','n',0}; static const WCHAR szAssignmentType[] = {'A','s','s','i','g','n','m','e','n','t','T','y','p','e',0}; + static const WCHAR szLanguage[] = + {'L','a','n','g','u','a','g','e',0}; + static const WCHAR szProductLanguage[] = + {'P','r','o','d','u','c','t','L','a','n','g','u','a','g','e',0}; FIXME("%s %s %p %p\n",debugstr_w(szProduct), debugstr_w(szAttribute), szBuffer, pcchValueBuf); @@ -577,6 +581,15 @@ UINT WINAPI MsiGetProductInfoW(LPCWSTR szProduct, LPCWSTR szAttribute, *pcchValueBuf = 1; r = ERROR_SUCCESS; } + else if (strcmpW(szAttribute, szLanguage)==0) + { + r = MsiOpenProductW(szProduct, &hProduct); + if (ERROR_SUCCESS != r) + return r; + + r = MsiGetPropertyW(hProduct, szProductLanguage, szBuffer, pcchValueBuf); + MsiCloseHandle(hProduct); + } else { r = MsiOpenProductW(szProduct, &hProduct);