Followup of d4f2921794.
[This is a testbot run with this patch.](https://testbot.winehq.org/JobDetails.pl?Key=157915)
From: Bernhard Übelacker bernhardu@mailbox.org
Followup of d4f2921794. --- dlls/setupapi/tests/devinst.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c index afbaf82bdc6..bf5d3c2a953 100644 --- a/dlls/setupapi/tests/devinst.c +++ b/dlls/setupapi/tests/devinst.c @@ -3981,7 +3981,9 @@ static void test_SetupDiOpenDeviceInterface(void) todo_wine_if(!ret && GetLastError() == ERROR_NO_SUCH_DEVINST) ok(!ret && GetLastError() == ERROR_INVALID_DEVINST_NAME, "got ret %d, error %#lx.\n", ret, GetLastError()); ret = SetupDiOpenDeviceInterfaceW(set, L"\\?\", 0, &iface); - ok(!ret && GetLastError() == ERROR_NO_SUCH_DEVICE_INTERFACE, "got ret %d, error %#lx.\n", ret, GetLastError()); + ok((!ret && GetLastError() == ERROR_NO_SUCH_DEVICE_INTERFACE) || + broken(!ret && GetLastError() == ERROR_BAD_PATHNAME), /* Win7 */ + "got ret %d, error %#lx.\n", ret, GetLastError()); ret = SetupDiOpenDeviceInterfaceW(set, device_path, 0, NULL); ok(ret, "got error %#lx.\n", GetLastError()); SetupDiDestroyDeviceInfoList(set);