JSONValue::Parse()
// We want a string now...
std::wstring name;
if (!JSON::ExtractString(&(++(*data)), name))
{
FREE_OBJECT(object);
return NULL;
}
The code assumes that it has run into a quote char and extracts a string, but it never actually looks at what char it encountered.
BTW: The code within the "if {...}" should just be a "break;" and centralize the error cleanup. That is what the compiler is doing anyway.