VirtualBox

Ignore:
Timestamp:
Nov 18, 2019 3:57:04 PM (5 years ago)
Author:
vboxsync
Message:

DevPit-i8254: saved state fix. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r81908 r81945  
    10151015        pHlp->pfnSSMPutU64(pSSM, pChan->u64ReloadTS);
    10161016        pHlp->pfnSSMPutS64(pSSM, pChan->next_transition_time);
    1017         if (pChan->hTimer)
     1017        if (pChan->hTimer != NIL_TMTIMERHANDLE)
    10181018            PDMDevHlpTimerSave(pDevIns, pChan->hTimer, pSSM);
    10191019    }
     
    10921092        pHlp->pfnSSMGetU64(pSSM, &pChan->u64ReloadTS);
    10931093        pHlp->pfnSSMGetS64(pSSM, &pChan->next_transition_time);
    1094         if (pChan->hTimer)
     1094        if (pChan->hTimer != NIL_TMTIMERHANDLE)
    10951095        {
    10961096            PDMDevHlpTimerLoad(pDevIns, pChan->hTimer, pSSM);
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