diff options
| author | Jason Rumney | 2008-11-23 15:06:44 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-11-23 15:06:44 +0000 |
| commit | a608bcbf777d126198b046c317af58cf4f373002 (patch) | |
| tree | 4ea7dc78d5451d747cdbce87dd19fba556bd2a4f /src | |
| parent | 12f0bd4ceaae5e8039acf2169ac2edbfd48d153e (diff) | |
| download | emacs-a608bcbf777d126198b046c317af58cf4f373002.tar.gz emacs-a608bcbf777d126198b046c317af58cf4f373002.zip | |
(uniscribe_encode_char): Ensure context is restored before returning.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32uniscribe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index ce2dd166313..25224302247 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c | |||
| @@ -524,9 +524,9 @@ uniscribe_encode_char (font, c) | |||
| 524 | result = ScriptGetCMap (context, &(uniscribe_font->cache), | 524 | result = ScriptGetCMap (context, &(uniscribe_font->cache), |
| 525 | ch, len, 0, glyphs); | 525 | ch, len, 0, glyphs); |
| 526 | if (SUCCEEDED (result)) | 526 | if (SUCCEEDED (result)) |
| 527 | return glyphs[0]; | 527 | code = glyphs[0]; |
| 528 | else | 528 | else |
| 529 | return 0; /* notdef - enough in some cases to get the script | 529 | code = 0; /* notdef - enough in some cases to get the script |
| 530 | engine working, but not others... */ | 530 | engine working, but not others... */ |
| 531 | } | 531 | } |
| 532 | } | 532 | } |