Bugfix: the constructor with parameter should also initialize value (i.e. call the default constructor)

This commit is contained in:
Laurent Clouet
2014-11-24 20:56:13 +00:00
parent 2c03eb2d24
commit af601a7df4

View File

@@ -80,6 +80,7 @@ public class WinProcess {
}
public WinProcess(int pid_) throws IOException {
this();
this.handle = Kernel32.INSTANCE.OpenProcess(0x0400 | // PROCESS_QUERY_INFORMATION
0x0800 | // PROCESS_SUSPEND_RESUME
0x0001 | // PROCESS_TERMINATE