Kaynağa Gözat

vsnprintf: Don't error out on end of format string.

Branimir Karadžić 8 yıl önce
ebeveyn
işleme
e760d0aa9d
1 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. 5 2
      src/string.cpp

+ 5 - 2
src/string.cpp

@@ -581,9 +581,12 @@ namespace bx
 		while (_err->isOk() )
 		{
 			char ch = '\0';
-			read(&reader, ch, _err);
 
-			if (!_err->isOk() )
+			Error err;
+			read(&reader, ch, &err);
+
+			if (!_err->isOk()
+			||  !err.isOk() )
 			{
 				break;
 			}