d3dcompiler_43/tests: Fix printing a NULL string

André Hentschel nerv at dawncrow.de
Mon Aug 29 14:10:56 CDT 2011


Should stop the crash on Solaris and maybe others
---
 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"))
     {
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list