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

This commit is contained in:
Nicolas Le Cam 2011-04-21 02:50:54 +02:00 committed by Alexandre Julliard
parent 03b388609d
commit 66b11a00b5
1 changed files with 3 additions and 1 deletions

View File

@ -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++)