[PATCH] dwrite: Skip entries prefixed with '@' in system font file enumerator
Nikolay Sivov
nsivov at codeweavers.com
Thu Dec 1 16:31:56 CST 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/dwrite/font.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c
index 2e1eab0..76a90bd 100644
--- a/dlls/dwrite/font.c
+++ b/dlls/dwrite/font.c
@@ -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;
}
--
2.10.2
More information about the wine-patches
mailing list