# HG changeset patch # User Jason Rumney # Date 1227452804 0 # Node ID 6a28cc2ace8aeabd2808da74e113981f438fc344 # Parent abf07d331cba2a1cbb64b329808b1512a84a7c34 (uniscribe_encode_char): Ensure context is restored before returning. diff -r abf07d331cba -r 6a28cc2ace8a src/w32uniscribe.c --- 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... */ } }