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

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55286
This commit is contained in:
Piotr Caban 2023-08-23 18:56:59 +02:00 committed by Alexandre Julliard
parent 7428b17647
commit 74eae57e0f

View file

@ -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;