Commit 162a40e1 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

setupapi/tests: Skip devinst tests if the user doesn't have admin rights.

parent 0922deda
......@@ -1349,8 +1349,17 @@ static void testSetupDiGetINFClassA(void)
START_TEST(devinst)
{
HKEY hkey;
init_function_pointers();
if ((hkey = SetupDiOpenClassRegKey(NULL, KEY_ALL_ACCESS)) == INVALID_HANDLE_VALUE)
{
skip("needs admin rights\n");
return;
}
RegCloseKey(hkey);
if (pIsWow64Process)
pIsWow64Process(GetCurrentProcess(), &is_wow64);
......
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