https://git.reactos.org/?p=reactos.git;a=commitdiff;h=337cbf5888d88f697ff19c830761602bf56eedf7

commit 337cbf5888d88f697ff19c830761602bf56eedf7
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Thu Oct 13 11:07:03 2022 +0900
Commit:     Katayama Hirofumi MZ <[email protected]>
CommitDate: Thu Oct 13 11:07:03 2022 +0900

    [BROWSEUI] Follow-up of 2e67c18 (#4767); Also check 'MenuText'
    
    CORE-18394
---
 dll/win32/browseui/shellbars/CBandSiteMenu.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dll/win32/browseui/shellbars/CBandSiteMenu.cpp 
b/dll/win32/browseui/shellbars/CBandSiteMenu.cpp
index 1ea45a47d68..bf227f5e4a4 100644
--- a/dll/win32/browseui/shellbars/CBandSiteMenu.cpp
+++ b/dll/win32/browseui/shellbars/CBandSiteMenu.cpp
@@ -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);
         }

Reply via email to