[SHELL32] Fix version info in the file dialog

This commit is contained in:
Maxim Smirnov 2019-04-03 00:03:19 +03:00 committed by Hermès BÉLUSCA - MAÏTO
parent 6d5a81013c
commit 39c0fd5722

View file

@ -80,7 +80,7 @@ LPCWSTR CFileVersionInfo::GetString(LPCWSTR pwszName)
if (!VerQueryValueW(m_pInfo, wszBuf, (LPVOID *)&pwszResult, &cBytes))
pwszResult = NULL;
if (!m_wLang && !m_wCode)
if (!pwszResult)
{
/* Try US English */
swprintf(wszBuf, L"\\StringFileInfo\\%04x%04x\\%s", MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), 1252, pwszName);