proc: fix proc.Launch on windows (#730)

Fixes #729
This commit is contained in:
Alessandro Arzilli 2017-02-09 17:44:12 +01:00 committed by Derek Parker
parent 997f038c47
commit ce01a67d8b

@ -241,7 +241,7 @@ func (dbp *Process) addThread(hThread syscall.Handle, threadID int, attach, susp
}
thread.os.hThread = hThread
dbp.threads[threadID] = thread
if dbp.CurrentThread == nil {
if dbp.currentThread == nil {
dbp.SwitchThread(thread.ID)
}
if suspendNewThreads {