--- win32/development/msvcee/Attic/eeparser3.cpp 2003/09/25 06:26:05 1.1 +++ win32/development/msvcee/Attic/eeparser3.cpp 2003/09/25 07:16:26 1.2 @@ -49,19 +49,24 @@ struct String { ADDIN_API HRESULT WINAPI AddIn_Parser3String( String* s, DEBUGHELPER *pHelper, int nBase, BOOL bUniStrings, char *pResult, size_t max, DWORD reserved ) { - /*String s; - HRESULT r=pHelper->ReadDebuggeeMemory( pHelper, dwAddress, - sizeof(s), &s, &nGot );*/ - + s=D(s); + if(!s) { + strncpy(pResult, "", max); + return; + } try { #if 0 - //MessageBox(0, "test", "stop", 0); + MessageBox(0, "test", "stop", 0); +#endif +#if 0 char buf[100]; _snprintf(buf, sizeof(buf), "=!0x%p!=", s->body); strncpy(pResult, buf, max); #else - strncpy(pResult, CORD_to_const_char_star(pHelper, D(D(s)->body)), max); + char buf[MAX_STRING*2]; + _snprintf(buf, sizeof(buf), "\"%s\"", CORD_to_const_char_star(pHelper, D(s->body)), max); + strncpy(pResult, buf, max); #endif } catch(...) { strncpy(pResult, "!EE-ERROR!", max);