From 235bb47d180736af936d267b8337090520f51293 Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Thu, 8 Mar 2012 09:16:46 +0100 Subject: [PATCH] d3dxof/tests: Do not print the string when GetName returned 0 byte. --- dlls/d3dxof/tests/d3dxof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/d3dxof/tests/d3dxof.c b/dlls/d3dxof/tests/d3dxof.c index 0c3a29571af..21eba9cc178 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) { -- 2.11.4.GIT