From 3d99a1ca66060ebbee02072ed17353e9c5695d9b Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Mon, 25 Jun 2018 15:01:59 +0200 Subject: [PATCH] VmaJsonWriter::ContinueString: Fixed bug with incorrect JSON generated when pUserData string contains '\' character. --- src/vk_mem_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 8981fdc..03a0e27 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -5103,7 +5103,7 @@ void VmaJsonWriter::ContinueString(const char* pStr) for(size_t i = 0; i < strLen; ++i) { char ch = pStr[i]; - if(ch == '\'') + if(ch == '\\') { m_SB.Add("\\\\"); }