1
0
Fork 0

DBG: finally fixed the bug with string searches producing inaccurate results

This commit is contained in:
Mr. eXoDia 2015-08-30 12:33:44 +02:00
parent 53f7bed38c
commit f7db29e91a
1 changed files with 0 additions and 5 deletions

View File

@ -296,11 +296,6 @@ bool disasmgetstringat(uint addr, STRING_TYPE* type, char* ascii, char* unicode,
if(!MemRead(addr, data(), (maxlen + 1) * 2))
return false;
uint test = 0;
memcpy(&test, data(), sizeof(uint));
if(MemIsValidReadPtr(test))
return false;
// Save a few pointer casts
auto asciiData = (char*)data();
auto unicodeData = (wchar_t*)data();