Changeset 39381 in vbox for trunk/src/VBox/Runtime/r3/stream.cpp
- Timestamp:
- Nov 21, 2011 12:59:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/stream.cpp
r39380 r39381 437 437 AssertPtrReturn(pStream, VERR_INVALID_HANDLE); 438 438 AssertReturn(pStream->u32Magic == RTSTREAM_MAGIC, VERR_INVALID_HANDLE); 439 AssertReturn(fBinary == TRUE || fBinary == FALSE|| fBinary == -1, VERR_INVALID_PARAMETER);440 AssertReturn(fCurrentCodeSet == TRUE || fCurrentCodeSet == FALSE|| fCurrentCodeSet == -1, VERR_INVALID_PARAMETER);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); 441 441 442 442 rtStrmLock(pStream); 443 443 444 444 if (fBinary != -1) 445 pStream->fBinary = fBinary != FALSE;445 pStream->fBinary = fBinary != 0 /* false */; 446 446 if (fCurrentCodeSet != -1) 447 pStream->fCurrentCodeSet = fCurrentCodeSet != FALSE;447 pStream->fCurrentCodeSet = fCurrentCodeSet != 0 /* false */; 448 448 449 449 rtStrmUnlock(pStream);
Note:
See TracChangeset
for help on using the changeset viewer.