Bugfix: when loading the native process, use the pid parameter not the uninitialized one...

This commit is contained in:
Laurent Clouet
2014-11-24 20:55:08 +00:00
parent 7a4c39fa68
commit 2c03eb2d24

View File

@@ -85,7 +85,7 @@ public class WinProcess {
0x0001 | // PROCESS_TERMINATE
0x0200 | // PROCESS_SET_INFORMATION
0x00100000, // SYNCHRONIZE
false, pid);
false, pid_);
if (this.handle == null) {
throw new IOException("OpenProcess failed: " + Kernel32Util.formatMessageFromLastErrorCode(Kernel32.INSTANCE.GetLastError()) + " (pid: " + pid_ + ")");
}