VirtualBox

Changeset 39383 in vbox


Ignore:
Timestamp:
Nov 21, 2011 1:35:31 PM (13 years ago)
Author:
vboxsync
Message:

faster, better. untested. :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/stream.cpp

    r39382 r39383  
    437437    AssertPtrReturn(pStream, VERR_INVALID_HANDLE);
    438438    AssertReturn(pStream->u32Magic == RTSTREAM_MAGIC, VERR_INVALID_HANDLE);
    439     AssertReturn(fBinary == 1 /* true */ || fBinary == 0 /* false */ || fBinary == -1, VERR_INVALID_PARAMETER);
    440     AssertReturn(fCurrentCodeSet == 1 /* true */ || fCurrentCodeSet == 0 /* false */ || fCurrentCodeSet == -1, VERR_INVALID_PARAMETER);
     439    AssertReturn((unsigned)(fBinary + 1) <= 2, VERR_INVALID_PARAMETER);
     440    AssertReturn((unsigned)(fCurrentCodeSet + 1) <= 2, VERR_INVALID_PARAMETER);
    441441
    442442    rtStrmLock(pStream);
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