• R/O
  • SSH
  • HTTPS

gtaconfig: 提交


Commit MetaInfo

修訂43 (tree)
時間2020-02-16 07:23:29
作者quiret

Log Message

- improved CSyntax::ParseTokenOfType by restoring seek if token of different type was found

Change Summary

差異

--- include/gtaconfig/syntax.h (revision 42)
+++ include/gtaconfig/syntax.h (revision 43)
@@ -549,7 +549,11 @@
549549 return nullptr;
550550
551551 if ( tokType != expectType )
552+ {
553+ // If we failed due to type then we must NOT pollute the parser by trashing the seek.
554+ this->DecreaseSeek( tokLen );
552555 return nullptr;
556+ }
553557
554558 *len = tokLen;
555559 return tok;
Show on old repository browser