mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[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:
parent
a943bb4613
commit
28e7af7531
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ STDMETHODIMP CFontExt::GetDisplayNameOf(PCUITEMID_CHILD pidl, DWORD dwFlags, LPS
|
||||||
if (!fontEntry)
|
if (!fontEntry)
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
if (dwFlags == SHGDN_FORPARSING)
|
if (dwFlags & SHGDN_FORPARSING)
|
||||||
{
|
{
|
||||||
CStringW File = g_FontCache->Filename(g_FontCache->Find(fontEntry), true);
|
CStringW File = g_FontCache->Filename(g_FontCache->Find(fontEntry), true);
|
||||||
if (!File.IsEmpty())
|
if (!File.IsEmpty())
|
||||||
|
|
Loading…
Reference in a new issue