VirtualBox

Changeset 78793 in vbox


Ignore:
Timestamp:
May 27, 2019 7:10:08 PM (6 years ago)
Author:
vboxsync
Message:

HostServices/SharedOpenGL/crserverlib/server_stream.cpp: Fix buffer size calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_stream.cpp

    r78375 r78793  
    691691        UnpackerState.cOpcodes         = msg_opcodes->numOpcodes;
    692692        UnpackerState.pbUnpackData     = data_ptr;
    693         UnpackerState.cbUnpackDataLeft = data_ptr - data_ptr_end;
     693        UnpackerState.cbUnpackDataLeft = data_ptr_end - data_ptr;
    694694        UnpackerState.pReturnPtr       = &cr_server.return_ptr;
    695695        UnpackerState.pWritebackPtr    = &cr_server.writeback_ptr;
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