changeset 99853:6a28cc2ace8a

(uniscribe_encode_char): Ensure context is restored before returning.
author Jason Rumney <jasonr@gnu.org>
date Sun, 23 Nov 2008 15:06:44 +0000
parents abf07d331cba
children 528e53849f51
files src/w32uniscribe.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32uniscribe.c	Sun Nov 23 13:41:24 2008 +0000
+++ b/src/w32uniscribe.c	Sun Nov 23 15:06:44 2008 +0000
@@ -524,9 +524,9 @@
               result = ScriptGetCMap (context, &(uniscribe_font->cache),
                                       ch, len, 0, glyphs);
               if (SUCCEEDED (result))
-                return glyphs[0];
+                code = glyphs[0];
               else
-                return 0; /* notdef - enough in some cases to get the script
+                code = 0; /* notdef - enough in some cases to get the script
                              engine working, but not others... */
             }
 	}