VirtualBox

Changeset 5569 in vbox


Ignore:
Timestamp:
Oct 30, 2007 7:35:37 PM (17 years ago)
Author:
vboxsync
Message:

fixed a bug where guest networking completely stopped after taking a snapshot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r5067 r5569  
    38613861
    38623862/**
     3863 * Cleanup after saving.
     3864 *
     3865 * @returns VBox status code.
     3866 * @param   pDevIns     The device instance.
     3867 * @param   pSSMHandle  The handle to save the state to.
     3868 */
     3869static DECLCALLBACK(int) pcnetSaveDone(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle)
     3870{
     3871    PCNetState *pData = PDMINS2DATA(pDevIns, PCNetState *);
     3872
     3873    PDMCritSectEnter(&pData->CritSect, VERR_PERMISSION_DENIED);
     3874    pData->fSaving = false;
     3875    PDMCritSectLeave(&pData->CritSect);
     3876    return VINF_SUCCESS;
     3877}
     3878
     3879
     3880/**
    38633881 * Loads a saved PC-Net II device state.
    38643882 *
     
    43634381    rc = PDMDevHlpSSMRegister(pDevIns, pDevIns->pDevReg->szDeviceName, iInstance,
    43644382                              PCNET_SAVEDSTATE_VERSION, sizeof(*pData),
    4365                               pcnetSavePrep, pcnetSaveExec, NULL,
     4383                              pcnetSavePrep, pcnetSaveExec, pcnetSaveDone,
    43664384                              NULL, pcnetLoadExec, NULL);
    43674385    if (VBOX_FAILURE(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette