Commit 93ac04d6 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Skip entries prefixed with '@' in system font file enumerator.

parent 50185949
...@@ -3808,10 +3808,12 @@ static HRESULT WINAPI systemfontfileenumerator_MoveNext(IDWriteFontFileEnumerato ...@@ -3808,10 +3808,12 @@ static HRESULT WINAPI systemfontfileenumerator_MoveNext(IDWriteFontFileEnumerato
/* iterate until we find next string value */ /* iterate until we find next string value */
while (1) { while (1) {
DWORD type = 0, count, val_count; DWORD type = 0, count, val_count;
val_count = max_val_count; val_count = max_val_count;
value[0] = 0;
if (RegEnumValueW(enumerator->hkey, enumerator->index, value, &val_count, NULL, &type, NULL, &count)) if (RegEnumValueW(enumerator->hkey, enumerator->index, value, &val_count, NULL, &type, NULL, &count))
break; break;
if (type == REG_SZ) { if (type == REG_SZ && *value && *value != '@') {
*current = TRUE; *current = TRUE;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment