Commit 66b11a00 authored by Nicolas Le Cam's avatar Nicolas Le Cam Committed by Alexandre Julliard

dxdiagn/tests: Initialize a variable and reduce its scope (valgrind).

parent 03b38860
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment