[BROWSEUI] - explorerband: get the caption string from resource file instead of hardc...
authorRobert Naumann <gonzomdx@gmail.com>
Fri, 29 Jul 2016 12:05:06 +0000 (12:05 +0000)
committerRobert Naumann <gonzomdx@gmail.com>
Fri, 29 Jul 2016 12:05:06 +0000 (12:05 +0000)
svn path=/trunk/; revision=72046

reactos/dll/win32/browseui/explorerband.cpp

index 11ecc24..f0a6a3d 100644 (file)
@@ -673,7 +673,8 @@ HRESULT STDMETHODCALLTYPE CExplorerBand::GetBandInfo(DWORD dwBandID, DWORD dwVie
 
     if (pdbi->dwMask & DBIM_TITLE)
     {
-        lstrcpyW(pdbi->wszTitle, L"Explorer");
+        if (!LoadStringW(_AtlBaseModule.GetResourceInstance(), IDS_FOLDERSLABEL, pdbi->wszTitle, _countof(pdbi->wszTitle)))
+            return HRESULT_FROM_WIN32(GetLastError());
     }
 
     if (pdbi->dwMask & DBIM_MODEFLAGS)