Author: akhaldi
Date: Thu Nov 17 23:49:54 2016
New Revision: 73317
URL:
http://svn.reactos.org/svn/reactos?rev=73317&view=rev
Log:
[SETUPAPI_WINETEST] Sync with Wine Staging 1.9.23. CORE-12409
Modified:
trunk/rostests/winetests/setupapi/devinst.c
Modified: trunk/rostests/winetests/setupapi/devinst.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/setupapi/devins…
==============================================================================
--- trunk/rostests/winetests/setupapi/devinst.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/setupapi/devinst.c [iso-8859-1] Thu Nov 17 23:49:54 2016
@@ -281,6 +281,12 @@
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);
@@ -445,7 +451,6 @@
DWORD i;
static GUID deadbeef =
{0xdeadbeef, 0xdead, 0xbeef, {0xde,0xad,0xbe,0xef,0xde,0xad,0xbe,0xef}};
- LONG res;
HKEY key;
static const WCHAR bogus0000[] =
{'S','y','s','t','e','m','\\',
'C','u','r','r','e','n','t','C','o','n','t','r','o','l','S','e','t','\\',
@@ -453,8 +458,13 @@
'L','E','G','A','C','Y','_','B','O','G','U','S','\\','0','0','0','0',0};
/* So we know we have a clean start */
- res = RegOpenKeyW(HKEY_LOCAL_MACHINE, bogus0000, &key);
- ok(res != ERROR_SUCCESS, "Expected key to not exist\n");
+ if (!RegOpenKeyW(HKEY_LOCAL_MACHINE, bogus0000, &key))
+ {
+ trace("Expected LEGACY_BOGUS\\0000 key to not exist, will be removed
now\n");
+ change_reg_permissions(bogus0000);
+ ok(!RegDeleteKeyW(HKEY_LOCAL_MACHINE, bogus0000), "Could not delete
LEGACY_BOGUS\\0000 key\n");
+ }
+
/* No GUID given */
SetLastError(0xdeadbeef);
ret = pSetupDiCreateDeviceInfoA(set, "Root\\LEGACY_BOGUS\\0000", NULL,