Commit 44499b5b authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

setupapi/tests: Remove win9x specifics from testDevRegKey.

parent 50d6b083
......@@ -903,23 +903,8 @@ static void testDevRegKey(void)
HDEVINFO set;
HKEY key = NULL;
if (!pSetupDiCreateDeviceInfoList || !pSetupDiDestroyDeviceInfoList ||
!pSetupDiCreateDeviceInfoA || !pSetupDiOpenDevRegKey ||
!pSetupDiRegisterDeviceInfo || !pSetupDiCreateDevRegKeyW ||
!pSetupDiCallClassInstaller)
{
skip("No SetupDiOpenDevRegKey\n");
return;
}
/* Check if we are on win9x */
SetLastError(0xdeadbeef);
key = pSetupDiCreateDevRegKeyW(NULL, NULL, 0, 0, 0, NULL, NULL);
if (key == INVALID_HANDLE_VALUE && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
{
skip("We are on win9x where the tests introduce issues\n");
return;
}
ok(key == INVALID_HANDLE_VALUE,
"Expected INVALID_HANDLE_VALUE, got %p\n", key);
ok(GetLastError() == ERROR_INVALID_HANDLE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment