André Hentschel : d3dcompiler_43/tests: Fix printing a NULL string.

Alexandre Julliard julliard at winehq.org
Tue Aug 30 12:48:34 CDT 2011


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Mon Aug 29 21:10:56 2011 +0200

d3dcompiler_43/tests: Fix printing a NULL string.

---

 dlls/d3dcompiler_43/tests/asm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3dcompiler_43/tests/asm.c b/dlls/d3dcompiler_43/tests/asm.c
index 5c01983..18bdd16 100644
--- a/dlls/d3dcompiler_43/tests/asm.c
+++ b/dlls/d3dcompiler_43/tests/asm.c
@@ -1440,7 +1440,7 @@ static HRESULT WINAPI testD3DInclude_open(ID3DInclude *iface, D3D_INCLUDE_TYPE i
     char include3[] = "vs.1.1\n";
 
     trace("filename %s\n", filename);
-    trace("parent_data (%p) -> %s\n", parent_data, (char *)parent_data);
+    trace("parent_data (%p) -> %s\n", parent_data, parent_data ? (char *)parent_data : "(null)");
 
     if (!strcmp(filename, "incl.vsh"))
     {




More information about the wine-cvs mailing list