Commit 8f1c7675 authored by Rom Walton's avatar Rom Walton
Browse files

Revert "VBOX: Fix a crashing bug on Windows. If we fail to acquire a machine...

Revert "VBOX: Fix a crashing bug on Windows.  If we fail to acquire a machine state lock, just report a VM start failure instead of crashing."

This reverts commit 7efd4b47.
parent 4dbc6081
...@@ -1394,11 +1394,8 @@ int VBOX_VM::start() { ...@@ -1394,11 +1394,8 @@ int VBOX_VM::start() {
// We should now own what goes on with the VM. // We should now own what goes on with the VM.
// //
rc = pMachineRO->LockMachine(m_pPrivate->m_pSession, LockType_Write); pMachineRO->LockMachine(m_pPrivate->m_pSession, LockType_Write);
if (CHECK_ERROR(rc)) goto CLEANUP; m_pPrivate->m_pSession->get_Machine(&m_pPrivate->m_pMachine);
rc = m_pPrivate->m_pSession->get_Machine(&m_pPrivate->m_pMachine);
if (CHECK_ERROR(rc)) goto CLEANUP;
rc = m_pPrivate->m_pMachine->get_SessionPID((ULONG*)&vm_pid); rc = m_pPrivate->m_pMachine->get_SessionPID((ULONG*)&vm_pid);
if (CHECK_ERROR(rc)) goto CLEANUP; if (CHECK_ERROR(rc)) goto CLEANUP;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment