[FONTEXT] Fix CFontExt::GetDisplayNameOf for SHGDN_FORPARSING (#7134)

Fix font enumeration and AutoComplete on %WINDIR%\Fonts.
JIRA issue: CORE-9281
"Replace if (dwFlags ==
SHGDN_FORPARSING)" with
"if (dwFlags & SHGDN_FORPARSING)".
This commit is contained in:
Katayama Hirofumi MZ 2024-07-11 17:18:01 +09:00 committed by GitHub
parent a943bb4613
commit 28e7af7531
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -426,7 +426,7 @@ STDMETHODIMP CFontExt::GetDisplayNameOf(PCUITEMID_CHILD pidl, DWORD dwFlags, LPS
if (!fontEntry)
return E_FAIL;
if (dwFlags == SHGDN_FORPARSING)
if (dwFlags & SHGDN_FORPARSING)
{
CStringW File = g_FontCache->Filename(g_FontCache->Find(fontEntry), true);
if (!File.IsEmpty())