aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney <[email protected]>2008-11-23 15:06:44 +0000
committerJason Rumney <[email protected]>2008-11-23 15:06:44 +0000
commita608bcbf777d126198b046c317af58cf4f373002 (patch)
tree4ea7dc78d5451d747cdbce87dd19fba556bd2a4f /src
parent12f0bd4ceaae5e8039acf2169ac2edbfd48d153e (diff)
(uniscribe_encode_char): Ensure context is restored before returning.
Diffstat (limited to 'src')
-rw-r--r--src/w32uniscribe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c
index ce2dd16631..2522430224 100644
--- a/src/w32uniscribe.c
+++ b/src/w32uniscribe.c
@@ -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... */
}
}