Skip to content

Commit

Permalink
Fix the name and description truncation issue in a cleaner way.
Browse files Browse the repository at this point in the history
  • Loading branch information
glennricster committed Jan 4, 2013
1 parent 4f531fe commit 12a6065
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Source/Core/Common/Src/ChunkFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,7 @@ class PointerWrap
Do(stringLen);

switch (mode) {
case MODE_READ:
{
wchar_t* tmp = new wchar_t[stringLen / sizeof(wchar_t)];
memcpy(tmp, *ptr, stringLen);
x = tmp;
delete[] tmp;
}
break;
case MODE_READ: x.assign((wchar_t*)*ptr, stringLen / sizeof(wchar_t)); break;
case MODE_WRITE: memcpy(*ptr, x.c_str(), stringLen); break;
case MODE_MEASURE: break;
case MODE_VERIFY: _dbg_assert_msg_(COMMON, x == (wchar_t*)*ptr, "Savestate verification failure: \"%ls\" != \"%ls\" (at %p).\n", x.c_str(), (wchar_t*)*ptr, ptr); break;
Expand Down

0 comments on commit 12a6065

Please sign in to comment.