From: Robert Naumann Date: Fri, 29 Jul 2016 12:05:06 +0000 (+0000) Subject: [BROWSEUI] - explorerband: get the caption string from resource file instead of hardc... X-Git-Tag: backups/sndblst@72664~553 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=a57e61507def81c4e3348b120fae43138e7ed558;hp=5575b8bacc812bdbb5cd73ef1cfa8b611066846a [BROWSEUI] - explorerband: get the caption string from resource file instead of hardcoding it svn path=/trunk/; revision=72046 --- diff --git a/reactos/dll/win32/browseui/explorerband.cpp b/reactos/dll/win32/browseui/explorerband.cpp index 11ecc249e42..f0a6a3d35fe 100644 --- a/reactos/dll/win32/browseui/explorerband.cpp +++ b/reactos/dll/win32/browseui/explorerband.cpp @@ -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)