Jacek Caban : dbghelp: Use symt_get_name directly in stabs_pts_read_aggregate.

Alexandre Julliard julliard at winehq.org
Mon Aug 17 11:23:48 CDT 2009


Module: wine
Branch: master
Commit: 4cc3ce923aafc71bb039c66d6dac78bde535eb1c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4cc3ce923aafc71bb039c66d6dac78bde535eb1c

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Aug 14 19:26:35 2009 +0200

dbghelp: Use symt_get_name directly in stabs_pts_read_aggregate.

---

 dlls/dbghelp/stabs.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/dlls/dbghelp/stabs.c b/dlls/dbghelp/stabs.c
index 33b815a..0efc58b 100644
--- a/dlls/dbghelp/stabs.c
+++ b/dlls/dbghelp/stabs.c
@@ -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.




More information about the wine-cvs mailing list