[PATCH] d3dxof/tests: Do not print the string when GetName returned 0 byte.

Christian Costa titan.costa at gmail.com
Sat Feb 25 04:37:08 CST 2012


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

diff --git a/dlls/d3dxof/tests/d3dxof.c b/dlls/d3dxof/tests/d3dxof.c
index c166054..3a2fb49 100644
--- a/dlls/d3dxof/tests/d3dxof.c
+++ b/dlls/d3dxof/tests/d3dxof.c
@@ -551,7 +551,7 @@ static void process_data(LPDIRECTXFILEDATA lpDirectXFileData, int* plevel)
         printf("  ");
     debugstr_guid(str_clsid, &clsid);
     debugstr_guid(str_clsid_type, clsid_type);
-    printf("Found object '%s' - %s - %s - %d\n", name, str_clsid, str_clsid_type, size);
+    printf("Found object '%s' - %s - %s - %d\n", len ? name : "", str_clsid, str_clsid_type, size);
 
     if (EXPAND_STRING && size == 4)
     {




More information about the wine-patches mailing list