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,10 +159,19 @@ HRESULT GetGDIFamilyNameFromDWriteFont(IDWriteFont* font, WCHAR* buffer, UINT bu
|
|||||||
BOOL stringsExist;
|
BOOL stringsExist;
|
||||||
HRESULT hr = font->GetInformationalStrings(
|
HRESULT hr = font->GetInformationalStrings(
|
||||||
DWRITE_INFORMATIONAL_STRING_WIN32_FAMILY_NAMES, &strings, &stringsExist);
|
DWRITE_INFORMATIONAL_STRING_WIN32_FAMILY_NAMES, &strings, &stringsExist);
|
||||||
if (SUCCEEDED(hr) && stringsExist)
|
if (SUCCEEDED(hr))
|
||||||
|
{
|
||||||
|
if (stringsExist)
|
||||||
{
|
{
|
||||||
hr = strings->GetString(0, buffer, bufferSize);
|
hr = strings->GetString(0, buffer, bufferSize);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
hr = E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
strings->Release();
|
||||||
|
}
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user