VirtualBox

Changeset 58288 in vbox


Ignore:
Timestamp:
Oct 17, 2015 7:05:46 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103483
Message:

localipc-win.cpp: The RTLocalIpcSessionRead pcbRead parameter is a pure output parameter, don't know where someone got the idea that it should take over the role of cbBuffer from. (The one place where pcbRead is specified assumes documented behavior rather than the nonsensical implementation.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/localipc-win.cpp

    r58282 r58288  
    805805            pThis->cRefs++;
    806806
    807             /*
    808              * If pcbRead is non-NULL this indicates the maximum number of bytes to read.
    809              * If pcbRead is NULL then this is the exact number of bytes to read.
    810              */
    811             size_t cbToRead = pcbRead ? *pcbRead : cbBuffer;
     807            size_t cbToRead = cbBuffer;
    812808            size_t cbTotalRead = 0;
    813809            while (cbToRead > 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette