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

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Nikolay Sivov 2016-12-02 01:31:56 +03:00 committed by Alexandre Julliard
parent 50185949d8
commit 93ac04d608
1 changed files with 3 additions and 1 deletions

View File

@ -3808,10 +3808,12 @@ static HRESULT WINAPI systemfontfileenumerator_MoveNext(IDWriteFontFileEnumerato
/* iterate until we find next string value */
while (1) {
DWORD type = 0, count, val_count;
val_count = max_val_count;
value[0] = 0;
if (RegEnumValueW(enumerator->hkey, enumerator->index, value, &val_count, NULL, &type, NULL, &count))
break;
if (type == REG_SZ) {
if (type == REG_SZ && *value && *value != '@') {
*current = TRUE;
break;
}