Bugfix: the constructor with parameter should also initialize value (i.e. call the default constructor)
This commit is contained in:
@@ -80,6 +80,7 @@ public class WinProcess {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public WinProcess(int pid_) throws IOException {
|
public WinProcess(int pid_) throws IOException {
|
||||||
|
this();
|
||||||
this.handle = Kernel32.INSTANCE.OpenProcess(0x0400 | // PROCESS_QUERY_INFORMATION
|
this.handle = Kernel32.INSTANCE.OpenProcess(0x0400 | // PROCESS_QUERY_INFORMATION
|
||||||
0x0800 | // PROCESS_SUSPEND_RESUME
|
0x0800 | // PROCESS_SUSPEND_RESUME
|
||||||
0x0001 | // PROCESS_TERMINATE
|
0x0001 | // PROCESS_TERMINATE
|
||||||
|
|||||||
Reference in New Issue
Block a user