dxdiagn/tests: Initialize a variable and reduce its scope (valgrind).
This commit is contained in:
parent
03b388609d
commit
66b11a00b5
|
@ -840,7 +840,6 @@ static void test_DxDiag_SystemInfo(void)
|
|||
|
||||
HRESULT hr;
|
||||
IDxDiagContainer *child = NULL;
|
||||
VARIANT var;
|
||||
|
||||
if (!create_root_IDxDiagContainer())
|
||||
{
|
||||
|
@ -854,6 +853,9 @@ static void test_DxDiag_SystemInfo(void)
|
|||
if (hr == S_OK)
|
||||
{
|
||||
int i;
|
||||
VARIANT var;
|
||||
|
||||
VariantInit(&var);
|
||||
|
||||
/* Examine the variant types of obtained property values. */
|
||||
for (i = 0; i < sizeof(property_tests)/sizeof(property_tests[0]); i++)
|
||||
|
|
Loading…
Reference in New Issue