diff options
author | marha <marha@users.sourceforge.net> | 2012-02-24 08:18:51 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-02-24 08:18:51 +0100 |
commit | 6f066fc9e28c33779b89e7e48e6437965dde9b77 (patch) | |
tree | b2b9767762bd559d1edd808820cb65a4e3330397 /fontconfig/src/ftglue.c | |
parent | 1b73fdf9c9aa2330380300d204fb47f512cfb6e2 (diff) | |
parent | 5fb4fb602bde5140dcea45464e3b70a49078ad2e (diff) | |
download | vcxsrv-6f066fc9e28c33779b89e7e48e6437965dde9b77.tar.gz vcxsrv-6f066fc9e28c33779b89e7e48e6437965dde9b77.tar.bz2 vcxsrv-6f066fc9e28c33779b89e7e48e6437965dde9b77.zip |
Merge remote-tracking branch 'origin/released'
Diffstat (limited to 'fontconfig/src/ftglue.c')
-rw-r--r-- | fontconfig/src/ftglue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fontconfig/src/ftglue.c b/fontconfig/src/ftglue.c index d5af810b4..7c643d0ff 100644 --- a/fontconfig/src/ftglue.c +++ b/fontconfig/src/ftglue.c @@ -82,7 +82,6 @@ ftglue_stream_seek( FT_Stream stream, { FT_Error error = 0; - stream->pos = pos; if ( stream->read ) { if ( stream->read( stream, pos, 0, 0 ) ) @@ -91,6 +90,8 @@ ftglue_stream_seek( FT_Stream stream, else if ( pos > stream->size ) error = FT_Err_Invalid_Stream_Operation; + if ( !error ) + stream->pos = pos; LOG(( "ftglue:stream:seek(%ld) -> %d\n", pos, error )); return error; } |