Connor McAdams (@cmcadams) commented about dlls/setupapi/tests/devinst.c:
- ret = pSetupDiGetDevicePropertyW(set, &device_data, &DEVPKEY_Device_InstanceId, &type, buffer, sizeof(buffer), &size, 0);
- err = GetLastError();
- todo_wine ok(ret, "Expect success\n");
- todo_wine ok(err == NO_ERROR, "Expect last error %#x, got %#lx\n", NO_ERROR, err);
- todo_wine ok(type == DEVPROP_TYPE_STRING, "Expect type %#x, got %#lx\n", DEVPROP_TYPE_STRING, type);
- todo_wine ok(size == sizeof(instance_id), "Got size %lu\n", size);
- todo_wine ok(!wcsicmp(instance_id, (WCHAR *)buffer), "Expect buffer %s, got %s\n", debugstr_w(instance_id), debugstr_w((WCHAR*)buffer));
- type = DEVPROP_TYPE_EMPTY;
- size = 0;
- ret = pSetupDiGetDevicePropertyW(set, &device_data, &DEVPKEY_Device_ClassGuid, &type, (BYTE *)&guid_val, sizeof(guid_val), &size, 0);
- err = GetLastError();
- todo_wine ok(ret, "Expect success\n");
- todo_wine ok(err == NO_ERROR, "Expect last error %#x, got %#lx\n", NO_ERROR, err);
- todo_wine ok(type == DEVPROP_TYPE_GUID, "Expect type %#x, got %#lx\n", DEVPROP_TYPE_GUID, type);
- todo_wine ok(size == sizeof(guid_val), "Got size %lu\n", size);
- todo_wine ok(IsEqualGUID(&guid_val, &guid), "Expect buffer %s, got %s\n", debugstr_guid(&guid), debugstr_guid(&guid_val));
Adding a newline between these two tests would make this a bit more readable, e.g an empty line after line 1208.