VirtualBox

Changeset 42919 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Aug 22, 2012 1:11:46 PM (12 years ago)
Author:
vboxsync
Message:

Main/Guest: fix logging which would crash because a smart pointer isn't the same as a pointer

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp

    r42897 r42919  
    263263        {
    264264            LogFlowFunc(("Removing session (pSession=%p, ID=%RU32) (now total %ld sessions)\n",
    265                          itSessions->second, itSessions->second->getId(), mData.mGuestSessions.size() - 1));
     265                         (GuestSession *)itSessions->second, itSessions->second->getId(), mData.mGuestSessions.size() - 1));
    266266
    267267            mData.mGuestSessions.erase(itSessions);
     
    319319
    320320        LogFlowFunc(("Added new session (pSession=%p, ID=%RU32), now %ld sessions total\n",
    321                      pGuestSession, uNewSessionID, mData.mGuestSessions.size()));
     321                     (GuestSession *)pGuestSession, uNewSessionID, mData.mGuestSessions.size()));
    322322    }
    323323    catch (int rc2)
  • trunk/src/VBox/Main/src-client/GuestImpl.cpp

    r42897 r42919  
    146146#ifdef DEBUG
    147147        ULONG cRefs = itSessions->second->AddRef();
    148         LogFlowThisFunc(("pSession=%p, cRefs=%RU32\n", itSessions->second, cRefs > 0 ? cRefs - 1 : 0));
     148        LogFlowThisFunc(("pSession=%p, cRefs=%RU32\n", (GuestSession *)itSessions->second, cRefs > 0 ? cRefs - 1 : 0));
    149149        itSessions->second->Release();
    150150#endif
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