gdi32: Prevent possible buffer overflows in get_glyph_outline.