https://bugs.winehq.org/show_bug.cgi?id=39231
Bug ID: 39231 Summary: setupapi:devinst fails if privileges not high enough Product: Wine Version: unspecified Hardware: x86 OS: Windows Status: NEW Severity: normal Priority: P2 Component: setupapi Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
The following failures only happen if the test is run in a restricted or limited user account.
devinst.c:408: Test failed: SetupDiInstallClassA failed: 0000000d devinst.c:410: Test failed: Couldn't delete classkey devinst.c:462: Test failed: Expected ERROR_INVALID_PARAMETER, got 00000005 devinst.c:479: Test failed: Expected ERROR_CLASS_MISMATCH, got 00000005 devinst.c:491: Test failed: SetupDiCreateDeviceInfoA failed: 00000005 devinst.c:496: Test failed: Expected ERROR_DEVINST_ALREADY_EXISTS, got 00000005 devinst.c:502: Test failed: Expected ERROR_INVALID_USER_BUFFER, got 00000005 devinst.c:508: Test failed: SetupDiCreateDeviceInfoA failed: 00000005 devinst.c:516: Test failed: Expected 3 devices, got 0 devinst.c:601: Test failed: SetupDiCreateDeviceInfoA failed: 00000005 devinst.c:604: Test failed: Expected ERROR_INSUFFICIENT_BUFFER, got 00000057 devinst.c:608: Test failed: SetupDiGetDeviceInstanceIdA failed: 00000057 devinst.c:609: Test failed: Unexpected instance ID aö|4 devinst.c:613: Test failed: SetupDiCreateDeviceInfoA failed: 00000005 devinst.c:616: Test failed: SetupDiGetDeviceInstanceIdA failed: 00000057 devinst.c:618: Test failed: Unexpected instance ID aö|4 devinst.c:654: Test failed: SetupDiCreateDeviceInfoA failed: 5 devinst.c:721: Test failed: SetupDiCreateDeviceInfoA failed: 00000005 devinst.c:725: Test failed: Expected ERROR_INVALID_USER_BUFFER, got 00000057 devinst.c:729: Test failed: SetupDiCreateDeviceInterfaceA failed: 00000057 devinst.c:733: Test failed: SetupDiCreateDeviceInterfaceA failed: 00000057 devinst.c:736: Test failed: SetupDiCreateDeviceInterfaceA failed: 00000057 devinst.c:739: Test failed: SetupDiEnumDeviceInterfaces failed: 259 devinst.c:744: Test failed: expected 2 interfaces, got 0 devinst.c:247: We are most likely on Windows 2000 devinst.c:810: Test failed: SetupDiCreateDeviceInfoA failed: 00000005 devinst.c:814: Test failed: SetupDiCreateDeviceInterfaceA failed: 00000057 devinst.c:818: Test failed: Expected ERROR_INSUFFICIENT_BUFFER, got 87 devinst.c:828: Test failed: Expected ERROR_INSUFFICIENT_BUFFER, got 87 devinst.c:252: Test failed: Couldn't delete deviceclass key devinst.c:932: Test failed: SetupDiCreateDeviceInfoA failed: 00000005 devinst.c:934: Test failed: Expected registry key to exist devinst.c:950: Test failed: Expected ERROR_INVALID_FLAGS, got 87 devinst.c:955: Test failed: Expected ERROR_INVALID_FLAGS, got 87 devinst.c:961: Test failed: Expected ERROR_INVALID_FLAGS, got 87 devinst.c:967: Test failed: Expected ERROR_DEVINFO_NOT_REGISTERED, got 00000057 devinst.c:972: Test failed: SetupDiRegisterDeviceInfo failed: 00000057 devinst.c:977: Test failed: Expected ERROR_KEY_DOES_NOT_EXIST, got 00000057 devinst.c:984: Test failed: Expected ERROR_KEY_DOES_NOT_EXIST, got 00000057 devinst.c:997: Test failed: SetupDiCreateDevRegKey failed: 00000057 devinst.c:144: Test failed: SetupDiEnumDeviceInfo failed: 00000103 devinst.c:152: Test failed: SetupDiCallClassInstaller(DIF_REMOVE...) failed: 00000057 devinst.c:1027: Test failed: Expected the device to be removed: 00000000 devinst.c:1033: We are most likely on Wine devinst.c:1084: Test failed: SetupDiCreateDeviceInfoA failed: 00000005 devinst.c:1087: Test failed: SetupDiCreateDeviceInterfaceA failed: 00000057 devinst.c:1090: Test failed: SetupDiRegisterDeviceInfo failed: 00000057 devinst.c:1101: Test failed: SetupDiEnumDeviceInterfaces failed: 00000103 devinst.c:1104: Test failed: Expected ERROR_INSUFFICIENT_BUFFER, got 00000057 devinst.c:144: Test failed: SetupDiEnumDeviceInfo failed: 00000103 devinst.c:152: Test failed: SetupDiCallClassInstaller(DIF_REMOVE...) failed: 00000057 devinst.c:1143: Test failed: Expected the device to be removed: 00000000 devinst.c:1149: We are most likely on Wine devinst.c:1182: Test failed: SetupDiCreateDeviceInfoA failed: 00000005 devinst.c:1194: Test failed: Expected ERROR_INVALID_REG_PROPERTY, got 00000057 devinst.c:1204: Test failed: SetupDiSetDeviceRegistryPropertyA failed: 00000057 devinst.c:1216: Test failed: Expected ERROR_INVALID_REG_PROPERTY, got 00000057 devinst.c:1225: Test failed: Expected ERROR_INSUFFICIENT_BUFFER, got 00000057 devinst.c:1227: Test failed: Unexpected size: 0 devinst.c:1231: Test failed: SetupDiGetDeviceRegistryPropertyA failed: 00000057 devinst.c:1232: Test failed: Unexpected property devinst.c:1236: Test failed: SetupDiGetDeviceRegistryPropertyA failed: 00000057 devinst.c:1237: Test failed: Unexpected value of property devinst.c:1238: Test failed: Unexpected type of property: 0 devinst.c:1242: Test failed: SetupDiSetDeviceRegistryPropertyA failed: 00000057 devinst.c:1247: Test failed: Expected ERROR_INVALID_DATA, got 00000057 devinst.c:1288: Test failed: SetupDiCreateDeviceInfoW failed: 00000005 devinst.c:1300: Test failed: Expected ERROR_INVALID_REG_PROPERTY, got 00000057 devinst.c:1310: Test failed: SetupDiSetDeviceRegistryPropertyW failed: 00000057 devinst.c:1322: Test failed: Expected ERROR_INVALID_REG_PROPERTY, got 00000057 devinst.c:1331: Test failed: Expected ERROR_INSUFFICIENT_BUFFER, got 00000057 devinst.c:1333: Test failed: Unexpected size: 0 devinst.c:1337: Test failed: SetupDiGetDeviceRegistryPropertyW failed: 00000057 devinst.c:1338: Test failed: Unexpected property devinst.c:1342: Test failed: SetupDiGetDeviceRegistryPropertyW failed: 00000057 devinst.c:1343: Test failed: Unexpected value of property devinst.c:1344: Test failed: Unexpected type of property: 0 devinst.c:1348: Test failed: SetupDiSetDeviceRegistryPropertyW failed: 00000057 devinst.c:1353: Test failed: Expected ERROR_INVALID_DATA, got 00000057
In particular one can notice this bug on the following WineTest boxes: fg-win2000-rusr: Windows 2000 with a Restricted user account fg-win2000-susr: Windows 2000 with a Standard (Power) user account. fg-winxp-lusr: Windows XP with a Limited user account.
Note however that it succeeds in regular user accounts on the following boxes for instance: fg-win7u64-1spie9usr: Windows 7 with a regular user account.
See: https://test.winehq.org/data/tests/setupapi:devinst.html
https://bugs.winehq.org/show_bug.cgi?id=39231
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
https://bugs.winehq.org/show_bug.cgi?id=39231
--- Comment #1 from François Gouget fgouget@codeweavers.com --- The TestBot does not have any non-administrator test configuration at this time, which may be why we do not see these failures anymore. Also, are limited / restricted user accounts still a thing?
So the first step should be to add such test configurations.