dbghelp: Use symt_get_name directly in stabs_pts_read_aggregate.

oldstable
Jacek Caban 2009-08-14 19:26:35 +02:00 committed by Alexandre Julliard
parent 956eea6b31
commit 4cc3ce923a
1 changed files with 2 additions and 6 deletions

View File

@ -655,15 +655,11 @@ static inline int stabs_pts_read_aggregate(struct ParseTypedefData* ptd,
if (doadd)
{
char tmp[256];
WCHAR* name;
DWORD64 size;
symt_get_info(adt, TI_GET_SYMNAME, &name);
strcpy(tmp, "__inherited_class_");
WideCharToMultiByte(CP_ACP, 0, name, -1,
tmp + strlen(tmp), sizeof(tmp) - strlen(tmp),
NULL, NULL);
HeapFree(GetProcessHeap(), 0, name);
strcat(tmp, symt_get_name(adt));
/* FIXME: TI_GET_LENGTH will not always work, especially when adt
* has just been seen as a forward definition and not the real stuff
* yet.