mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Gfx: Minor fix
This commit is contained in:
parent
67542f31dd
commit
e10cdd2a86
@ -159,9 +159,18 @@ HRESULT GetGDIFamilyNameFromDWriteFont(IDWriteFont* font, WCHAR* buffer, UINT bu
|
||||
BOOL stringsExist;
|
||||
HRESULT hr = font->GetInformationalStrings(
|
||||
DWRITE_INFORMATIONAL_STRING_WIN32_FAMILY_NAMES, &strings, &stringsExist);
|
||||
if (SUCCEEDED(hr) && stringsExist)
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
hr = strings->GetString(0, buffer, bufferSize);
|
||||
if (stringsExist)
|
||||
{
|
||||
hr = strings->GetString(0, buffer, bufferSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
hr = E_FAIL;
|
||||
}
|
||||
|
||||
strings->Release();
|
||||
}
|
||||
|
||||
return hr;
|
||||
|
Loading…
Reference in New Issue
Block a user