[PATCH 3/6] d3dxof/tests: Do not print the string when GetName returned 0 byte.
Christian Costa
titan.costa at gmail.com
Thu Mar 8 02:16:46 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 0c3a295..21eba9c 100644
--- a/dlls/d3dxof/tests/d3dxof.c
+++ b/dlls/d3dxof/tests/d3dxof.c
@@ -576,7 +576,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