Commit 74eae57e authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt/tests: Make registry handle inheritable in test_invalid_stdin tests.

parent 7428b176
......@@ -1929,6 +1929,10 @@ static void test_invalid_stdin( const char* selfname )
ret = RegOpenCurrentUser(KEY_READ, &key);
ok(!ret, "RegOpenCurrentUser failed: %lx\n", ret);
ret = DuplicateHandle(GetCurrentProcess(), key, GetCurrentProcess(),
(HANDLE *)&key, GENERIC_READ, TRUE, DUPLICATE_CLOSE_SOURCE);
ok(ret, "DuplicateHandle failed: %lx\n", GetLastError());
sa.nLength = sizeof(sa);
sa.lpSecurityDescriptor = NULL;
sa.bInheritHandle = TRUE;
......
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