Rémi Bernon (@rbernon) commented about dlls/cfgmgr32/tests/cfgmgr32.c:
todo_wine ok( rem_props == 0, "got rem %lu != 0\n", rem_props ); winetest_pop_context(); }
DevFreeObjects( len, objects );len = 0;objects = NULL;prop_key.Key = test_cases[i].exp_props[0].key;prop_key.LocaleName = NULL;prop_key.Store = DEVPROP_STORE_SYSTEM;hr = DevGetObjects( DevObjectTypeDeviceInterface, 0, 1, &prop_key, 0, NULL, &len, &objects );ok( hr == S_OK, "got hr %#lx\n", hr );ok( len, "got len %lu\n", len );
Same here, and then you don't need the loop.