[BROWSEUI] Follow-up of 2e67c18 (#4767); Also check 'MenuText'

CORE-18394
This commit is contained in:
Katayama Hirofumi MZ 2022-10-13 11:07:03 +09:00
parent 31a33c5fcb
commit 337cbf5888

View file

@ -103,8 +103,12 @@ HRESULT CBandSiteMenu::_CreateMenuPart()
hr = SHLoadRegUIStringW(hKey, L"MenuTextPUI", wszBandName, _countof(wszBandName));
if (FAILED_UNEXPECTEDLY(hr))
{
hr = SHLoadRegUIStringW(hKey, NULL, wszBandName, _countof(wszBandName));
FAILED_UNEXPECTEDLY(hr);
hr = SHLoadRegUIStringW(hKey, L"MenuText", wszBandName, _countof(wszBandName));
if (FAILED_UNEXPECTEDLY(hr))
{
hr = SHLoadRegUIStringW(hKey, NULL, wszBandName, _countof(wszBandName));
FAILED_UNEXPECTEDLY(hr);
}
}
RegCloseKey(hKey);
}