=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: setupapi/tests: Also check for ERROR_CALL_NOT_IMPLEMENTED at the second call to SetupDiCreateDeviceInfoListExW.
Alexandre Julliard
julliard at winehq.org
Wed Sep 7 10:48:41 CDT 2016
Module: wine
Branch: master
Commit: cfcffd9799dea0044076eea178621f33998f68f5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cfcffd9799dea0044076eea178621f33998f68f5
Author: André Hentschel <nerv at dawncrow.de>
Date: Tue Sep 6 19:15:24 2016 +0200
setupapi/tests: Also check for ERROR_CALL_NOT_IMPLEMENTED at the second call to SetupDiCreateDeviceInfoListExW.
Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/setupapi/tests/devinst.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c
index 319bb31..b6439d5 100644
--- a/dlls/setupapi/tests/devinst.c
+++ b/dlls/setupapi/tests/devinst.c
@@ -281,6 +281,12 @@ static void test_SetupDiCreateDeviceInfoListEx(void)
devlist = pSetupDiCreateDeviceInfoListExW(NULL, NULL, machine, NULL);
error = GetLastError();
+ if (error == ERROR_CALL_NOT_IMPLEMENTED)
+ {
+ /* win10 reports ERROR_CALL_NOT_IMPLEMENTED at first here */
+ win_skip("SetupDiCreateDeviceInfoListExW is not implemented\n");
+ return;
+ }
ok(devlist == INVALID_HANDLE_VALUE, "SetupDiCreateDeviceInfoListExW failed : %p %d (expected %p)\n", devlist, error, INVALID_HANDLE_VALUE);
ok(error == ERROR_INVALID_MACHINENAME || error == ERROR_MACHINE_UNAVAILABLE, "GetLastError returned wrong value : %d, (expected %d or %d)\n", error, ERROR_INVALID_MACHINENAME, ERROR_MACHINE_UNAVAILABLE);
More information about the wine-cvs
mailing list