From 827ce16286c797e054bdb0494352f33398e4daeb Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Tue, 15 Feb 2011 01:14:35 -0600 Subject: [PATCH] dxdiagn: Add code to create stub containers for DxDiag_DirectSound. --- dlls/dxdiagn/provider.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dlls/dxdiagn/provider.c b/dlls/dxdiagn/provider.c index 02855bb0105..dfb892ad182 100644 --- a/dlls/dxdiagn/provider.c +++ b/dlls/dxdiagn/provider.c @@ -1210,6 +1210,23 @@ cleanup: static HRESULT build_directsound_tree(IDxDiagContainerImpl_Container *node) { + static const WCHAR DxDiag_SoundDevices[] = {'D','x','D','i','a','g','_','S','o','u','n','d','D','e','v','i','c','e','s',0}; + static const WCHAR DxDiag_SoundCaptureDevices[] = {'D','x','D','i','a','g','_','S','o','u','n','d','C','a','p','t','u','r','e','D','e','v','i','c','e','s',0}; + + IDxDiagContainerImpl_Container *cont; + + cont = allocate_information_node(DxDiag_SoundDevices); + if (!cont) + return E_OUTOFMEMORY; + + add_subcontainer(node, cont); + + cont = allocate_information_node(DxDiag_SoundCaptureDevices); + if (!cont) + return E_OUTOFMEMORY; + + add_subcontainer(node, cont); + return S_OK; }