projects
/
platform
/
upstream
/
fontconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71b14d6
)
Do not update stream->pos when seeking is failed.
author
Akira TAGOH
<akira@tagoh.org>
Wed, 22 Feb 2012 07:50:13 +0000
(16:50 +0900)
committer
Akira TAGOH
<akira@tagoh.org>
Wed, 22 Feb 2012 07:50:13 +0000
(16:50 +0900)
src/ftglue.c
patch
|
blob
|
history
diff --git
a/src/ftglue.c
b/src/ftglue.c
index
d5af810
..
7c643d0
100644
(file)
--- a/
src/ftglue.c
+++ b/
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;
}