VirtualBox

Changeset 39388 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Nov 21, 2011 3:54:36 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74988
Message:

RTStrSetMode: Only recheck when flipping the binary flag.

File:
1 edited

Legend:

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

    r39384 r39388  
    443443
    444444    if (fBinary != -1)
    445         pStream->fBinary = RT_BOOL(fBinary);
     445    {
     446        pStream->fBinary      = RT_BOOL(fBinary);
     447        pStream->fRecheckMode = true;
     448    }
     449
    446450    if (fCurrentCodeSet != -1)
    447451        pStream->fCurrentCodeSet = RT_BOOL(fCurrentCodeSet);
    448 
    449     /* Re-check mode on next operation. */
    450     if (   fBinary         != -1
    451         || fCurrentCodeSet != -1)
    452     {
    453         pStream->fRecheckMode = true;
    454     }
    455452
    456453    rtStrmUnlock(pStream);
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