dxdiagn: Add code to create stub containers for DxDiag_DirectSound.

This commit is contained in:
Andrew Nguyen 2011-02-15 01:14:35 -06:00 committed by Alexandre Julliard
parent 5a2cb2114a
commit 827ce16286
1 changed files with 17 additions and 0 deletions

View File

@ -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;
}