wbemprox/tests: Don't crash on VirtualBox.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2ba33c44b6
commit
335ad09175
|
@ -1368,6 +1368,8 @@ static void test_Win32_PhysicalMemory( IWbemServices *services )
|
||||||
hr = IEnumWbemClassObject_Next( result, 10000, 1, &obj, &count );
|
hr = IEnumWbemClassObject_Next( result, 10000, 1, &obj, &count );
|
||||||
ok( hr == S_OK, "got %08x\n", hr );
|
ok( hr == S_OK, "got %08x\n", hr );
|
||||||
|
|
||||||
|
if (count > 0)
|
||||||
|
{
|
||||||
type = 0xdeadbeef;
|
type = 0xdeadbeef;
|
||||||
VariantInit( &val );
|
VariantInit( &val );
|
||||||
hr = IWbemClassObject_Get( obj, capacityW, 0, &val, &type, NULL );
|
hr = IWbemClassObject_Get( obj, capacityW, 0, &val, &type, NULL );
|
||||||
|
@ -1387,6 +1389,7 @@ static void test_Win32_PhysicalMemory( IWbemServices *services )
|
||||||
VariantClear( &val );
|
VariantClear( &val );
|
||||||
|
|
||||||
IWbemClassObject_Release( obj );
|
IWbemClassObject_Release( obj );
|
||||||
|
}
|
||||||
IEnumWbemClassObject_Release( result );
|
IEnumWbemClassObject_Release( result );
|
||||||
SysFreeString( query );
|
SysFreeString( query );
|
||||||
SysFreeString( wql );
|
SysFreeString( wql );
|
||||||
|
|
Loading…
Reference in New Issue