Michael Stefaniuc : dbghelp: Use debugstr_a() to trace a string that can be NULL.

Alexandre Julliard julliard at winehq.org
Wed Apr 12 15:02:33 CDT 2017


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Wed Apr 12 13:20:30 2017 +0200

dbghelp: Use debugstr_a() to trace a string that can be NULL.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dbghelp/dwarf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 3fd1920..a7954fd 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -1920,7 +1920,7 @@ static struct symt* dwarf2_parse_subprogram(dwarf2_parse_context_t* ctx,
         inline_flags.u.uvalue != DW_INL_not_inlined)
     {
         TRACE("Function %s declared as inlined (%ld)... skipping\n",
-              name.u.string ? name.u.string : "(null)", inline_flags.u.uvalue);
+              debugstr_a(name.u.string), inline_flags.u.uvalue);
         return NULL;
     }
 




More information about the wine-cvs mailing list