Commit bd69c2e9 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32/tests: Allow the first char code to point to glyph 0 (the .notdef glyph).

parent 24c9a37a
...@@ -2147,11 +2147,10 @@ static BOOL get_first_last_from_cmap4(void *ptr, DWORD *first, DWORD *last) ...@@ -2147,11 +2147,10 @@ static BOOL get_first_last_from_cmap4(void *ptr, DWORD *first, DWORD *last)
index = GET_BE_WORD(glyph_ids[index]); index = GET_BE_WORD(glyph_ids[index]);
if(index) index += seg.id_delta; if(index) index += seg.id_delta;
} }
if(index) if(*first == 0x10000)
{ *last = *first = code;
else if(index)
*last = code; *last = code;
if(*first == 0x10000) *first = code;
}
} }
} }
......
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