Michael Stefaniuc : d3drm: Use debugstr_a to print a string that can be NULL.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 14 09:05:22 CDT 2016


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Mar 14 11:54:50 2016 +0100

d3drm: Use debugstr_a to print a string that can be NULL.

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/d3drm/meshbuilder.c b/dlls/d3drm/meshbuilder.c
index 8bd5131..6d0b55b 100644
--- a/dlls/d3drm/meshbuilder.c
+++ b/dlls/d3drm/meshbuilder.c
@@ -1069,7 +1069,7 @@ HRESULT load_mesh_data(IDirect3DRMMeshBuilder3 *iface, IDirectXFileData *pData,
             return hr;
     }
 
-    TRACE("Mesh name is '%s'\n", This->name ? This->name : "");
+    TRACE("Mesh name is %s\n", debugstr_a(This->name));
 
     This->nb_normals = 0;
 




More information about the wine-cvs mailing list