Changeset 75991 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Dec 5, 2018 8:14:57 PM (6 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/HGCM.cpp
r75990 r75991 2066 2066 class HGCMMsgMainReset: public HGCMMsgCore 2067 2067 { 2068 public: 2069 /** Set if this is actually a shutdown and not a VM reset. */ 2070 bool fForShutdown; 2068 2071 }; 2069 2072 … … 2307 2310 HGCMService::Reset(); 2308 2311 2309 HGCMService::BroadcastNotify(HGCMNOTIFYEVENT_RESET); 2312 HGCMMsgMainReset *pMsg = (HGCMMsgMainReset *)pMsgCore; 2313 if (!pMsg->fForShutdown) 2314 HGCMService::BroadcastNotify(HGCMNOTIFYEVENT_RESET); 2310 2315 } break; 2311 2316 … … 2909 2914 #endif 2910 2915 2911 int HGCMHostReset( void)2916 int HGCMHostReset(bool fForShutdown) 2912 2917 { 2913 2918 LogFlowFunc(("\n")); … … 2916 2921 */ 2917 2922 2918 HGCMMsgCore *pMsg ;2919 int rc = hgcmMsgAlloc(g_pHgcmThread, &pMsg , HGCM_MSG_RESET, hgcmMainMessageAlloc);2923 HGCMMsgCore *pMsgCore; 2924 int rc = hgcmMsgAlloc(g_pHgcmThread, &pMsgCore, HGCM_MSG_RESET, hgcmMainMessageAlloc); 2920 2925 2921 2926 if (RT_SUCCESS(rc)) 2927 { 2928 HGCMMsgMainReset *pMsg = (HGCMMsgMainReset *)pMsgCore; 2929 2930 pMsg->fForShutdown = fForShutdown; 2931 2922 2932 rc = hgcmMsgSend(pMsg); 2933 } 2923 2934 2924 2935 LogFlowFunc(("rc = %Rrc\n", rc)); … … 2956 2967 */ 2957 2968 2958 int rc = HGCMHostReset( );2969 int rc = HGCMHostReset(true /*fForShutdown*/); 2959 2970 2960 2971 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Main/src-client/VMMDevInterface.cpp
r75990 r75991 827 827 LogFlow(("VMMDev::drvReset: iInstance=%d\n", pDrvIns->iInstance)); 828 828 #ifdef VBOX_WITH_HGCM 829 HGCMHostReset( );829 HGCMHostReset(false /*fForShutdown*/); 830 830 #endif 831 831 }
Note:
See TracChangeset
for help on using the changeset viewer.