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:
parent
7428b17647
commit
74eae57e0f
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue