Skip to content

Commit bf402c8

Browse files
committed
Fix allocBytes to allocateBytes in readUnicodeString
1 parent 5d4fb42 commit bf402c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/GameEngine/Source/Common/System/JSONChunkInput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ UnicodeString JSONChunkInput::readUnicodeString(void)
358358
DEBUG_CRASH(("Failed to convert UTF-8 string to wide string."));
359359
return UnicodeString::TheEmptyString;
360360
}
361-
WideChar* wideStr = (WideChar*)TheDynamicMemoryAllocator->allocBytes(wideLen * sizeof(WideChar));
361+
WideChar* wideStr = (WideChar*)TheDynamicMemoryAllocator->allocateBytes(wideLen * sizeof(WideChar), "JSONChunkInput::readUnicodeString");
362362
MultiByteToWideChar(CP_UTF8, 0, str.c_str(), -1, wideStr, wideLen);
363363
UnicodeString result(wideStr);
364364
TheDynamicMemoryAllocator->freeBytes(wideStr);

0 commit comments

Comments
 (0)