VirtualBox

Changeset 77075 in vbox


Ignore:
Timestamp:
Jan 31, 2019 1:18:05 PM (6 years ago)
Author:
vboxsync
Message:

Guest Control/Main: Made GUEST_FILE_NOTIFYTYPE_WRITE more uniform to GUEST_FILE_NOTIFYTYPE_READ.

File:
1 edited

Legend:

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

    r76958 r77075  
    532532                    break;
    533533
    534                 Log3ThisFunc(("cbWritten=%RU32\n", dataCb.u.write.cbWritten));
     534                const uint32_t cbWritten = dataCb.u.write.cbWritten;
     535
     536                Log3ThisFunc(("cbWritten=%RU32\n", cbWritten));
    535537
    536538                AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    537539
    538                 mData.mOffCurrent += dataCb.u.write.cbWritten;
     540                mData.mOffCurrent += cbWritten;
    539541
    540542                alock.release();
    541543
    542                 fireGuestFileWriteEvent(mEventSource, mSession, this, mData.mOffCurrent,
    543                                         dataCb.u.write.cbWritten);
     544                fireGuestFileWriteEvent(mEventSource, mSession, this, mData.mOffCurrent, cbWritten);
    544545            }
    545546            break;
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