Commit 335ad091 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

wbemprox/tests: Don't crash on VirtualBox.

parent 2ba33c44
......@@ -1368,6 +1368,8 @@ static void test_Win32_PhysicalMemory( IWbemServices *services )
hr = IEnumWbemClassObject_Next( result, 10000, 1, &obj, &count );
ok( hr == S_OK, "got %08x\n", hr );
if (count > 0)
{
type = 0xdeadbeef;
VariantInit( &val );
hr = IWbemClassObject_Get( obj, capacityW, 0, &val, &type, NULL );
......@@ -1387,6 +1389,7 @@ static void test_Win32_PhysicalMemory( IWbemServices *services )
VariantClear( &val );
IWbemClassObject_Release( obj );
}
IEnumWbemClassObject_Release( result );
SysFreeString( query );
SysFreeString( wql );
......
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