import java.io.IOException;
import static org.gradle.internal.nativeplatform.jna.Kernel32.*;
public class WindowsHandlesManipulator {
public void uninheritStandardStreams() throws ProcessInitializationException {
Kernel32 kernel32 = INSTANCE;
<BUG>try {
HANDLE stdin = kernel32.GetStdHandle(Kernel32.STD_INPUT_HANDLE);
makeUninheritable(kernel32, stdin);
HANDLE stdout = kernel32.GetStdHandle(Kernel32.STD_OUTPUT_HANDLE);
makeUninheritable(kernel32, stdout);
HANDLE stderr = kernel32.GetStdHandle(Kernel32.STD_ERROR_HANDLE);
makeUninheritable(kernel32, stderr);</BUG>
} catch (Exception e) {

import java.io.IOException;
import static org.gradle.internal.nativeplatform.jna.Kernel32.*;
public class WindowsHandlesManipulator {
public void uninheritStandardStreams() throws ProcessInitializationException {
Kernel32 kernel32 = INSTANCE;
try {
uninheritStream(kernel32, Kernel32.STD_INPUT_HANDLE);
uninheritStream(kernel32, Kernel32.STD_OUTPUT_HANDLE);
uninheritStream(kernel32, Kernel32.STD_ERROR_HANDLE);
} catch (Exception e) {
