Changeset 50891 in vbox
- Timestamp:
- Mar 26, 2014 1:54:05 PM (11 years ago)
- Location:
- trunk/src/VBox/Devices/VMMDev
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r50674 r50891 3665 3665 pThis->pCredentials = NULL; 3666 3666 } 3667 3668 vmmdevHGCMDestroy(pThis); 3667 3669 3668 3670 #ifndef VBOX_WITHOUT_TESTING_FEATURES -
trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp
r50820 r50891 92 92 /** Whether the command is in the active commands list. */ 93 93 bool fInList; 94 95 /** Whether the command was saved. */96 bool fSaved;97 94 98 95 /** GC physical address of the guest request. */ … … 1956 1953 vmmdevHGCMRemoveCommand (pThis, pCmd); 1957 1954 1958 if (pCmd->fCancelled || pCmd->fSaved)1959 { 1960 LogFlowFunc(("A cancelled command %p: %d %d\n", pCmd, pCmd->fCancelled, pCmd->fSaved));1955 if (pCmd->fCancelled) 1956 { 1957 LogFlowFunc(("A cancelled command %p: %d\n", pCmd, pCmd->fCancelled)); 1961 1958 } 1962 1959 else … … 2507 2504 rc = SSMR3PutU32(pSSM, 0); 2508 2505 AssertRCReturn(rc, rc); 2509 2510 /* Mark the command as saved to make sure that it will not be2511 * completed later by a still running host service.2512 */2513 pIter->fSaved = true;2514 vmmdevHGCMRemoveCommand (pThis, pIter);2515 2506 2516 2507 pIter = pNext; … … 2988 2979 return rc; 2989 2980 } 2981 2982 void vmmdevHGCMDestroy(PVMMDEV pThis) 2983 { 2984 LogFlowFunc(("\n")); 2985 2986 PVBOXHGCMCMD pIter = pThis->pHGCMCmdList; 2987 2988 while (pIter) 2989 { 2990 PVBOXHGCMCMD pNext = pIter->pNext; 2991 2992 vmmdevHGCMRemoveCommand(pThis, pIter); 2993 2994 /* Deallocate the command memory. */ 2995 RTMemFree(pIter->paLinPtrs); 2996 RTMemFree(pIter); 2997 2998 pIter = pNext; 2999 } 3000 3001 return; 3002 } -
trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.h
r44528 r50891 33 33 int vmmdevHGCMLoadState(VMMDevState *pVMMDevState, PSSMHANDLE pSSM, uint32_t u32Version); 34 34 int vmmdevHGCMLoadStateDone(VMMDevState *pVMMDevState, PSSMHANDLE pSSM); 35 36 void vmmdevHGCMDestroy(PVMMDEV pThis); 35 37 RT_C_DECLS_END 36 38
Note:
See TracChangeset
for help on using the changeset viewer.