Christian Costa : d3dxof/tests: Do not print the string when GetName returned 0 byte.
Alexandre Julliard
julliard at winehq.org
Thu Mar 8 14:26:24 CST 2012
Module: wine
Branch: master
Commit: 235bb47d180736af936d267b8337090520f51293
URL: http://source.winehq.org/git/wine.git/?a=commit;h=235bb47d180736af936d267b8337090520f51293
Author: Christian Costa <titan.costa at gmail.com>
Date: Thu Mar 8 09:16:46 2012 +0100
d3dxof/tests: Do not print the string when GetName returned 0 byte.
---
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-cvs
mailing list