]> git.eshelyaron.com Git - emacs.git/commitdiff
(uniscribe_encode_char): Ensure context is restored before returning.
authorJason Rumney <jasonr@gnu.org>
Sun, 23 Nov 2008 15:06:44 +0000 (15:06 +0000)
committerJason Rumney <jasonr@gnu.org>
Sun, 23 Nov 2008 15:06:44 +0000 (15:06 +0000)
src/w32uniscribe.c

index ce2dd1663131cdb2bbc8204c9049cecf4d8fb8fd..2522430224756bf5e3bb044e68479eb55192b00a 100644 (file)
@@ -524,9 +524,9 @@ uniscribe_encode_char (font, c)
               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... */
             }
        }