projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe3478c
)
Sorry I did wrong calc of the position of ungetc did not think of TCHAR size.
author
Magnus Olsen
<magnus@greatlord.com>
Thu, 1 Jun 2006 09:38:11 +0000
(09:38 +0000)
committer
Magnus Olsen
<magnus@greatlord.com>
Thu, 1 Jun 2006 09:38:11 +0000
(09:38 +0000)
svn path=/trunk/; revision=22144
reactos/lib/crt/stdio/ungetc.c
patch
|
blob
|
history
diff --git
a/reactos/lib/crt/stdio/ungetc.c
b/reactos/lib/crt/stdio/ungetc.c
index
819ffce
..
ac6c681
100644
(file)
--- a/
reactos/lib/crt/stdio/ungetc.c
+++ b/
reactos/lib/crt/stdio/ungetc.c
@@
-21,13
+21,11
@@
_TINT _ungettc(_TINT c, FILE *f)
if (f->_ptr == f->_base)
{
- if (f->_cnt == 0)
- f->_ptr+=sizeof(_TCHAR);
- else
+ if (!f->_cnt == 0)
return _TEOF;
-
}
+ }
- fseek(f, -
1
, SEEK_CUR);
+ fseek(f, -
sizeof(_TCHAR)
, SEEK_CUR);
if(*(_TCHAR*)f->_ptr != c)
*((_TCHAR*)(f->_ptr)) = c;