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

Alexandre Julliard julliard at winehq.org
Tue Feb 17 08:49:19 CST 2009


Module: wine
Branch: master
Commit: bd69c2e95a0c16fea8846fea11262e70e2dc29be
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bd69c2e95a0c16fea8846fea11262e70e2dc29be

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue Feb 17 11:52:55 2009 +0000

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

---

 dlls/gdi32/tests/font.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index e244027..89a7225 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -2147,11 +2147,10 @@ static BOOL get_first_last_from_cmap4(void *ptr, DWORD *first, DWORD *last)
                 index = GET_BE_WORD(glyph_ids[index]);
                 if(index) index += seg.id_delta;
             }
-            if(index)
-            {
+            if(*first == 0x10000)
+                *last = *first = code;
+            else if(index)
                 *last = code;
-                if(*first == 0x10000) *first = code;
-            }
         }
     }
 




More information about the wine-cvs mailing list