- Timestamp:
- Nov 21, 2011 12:35:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/stream.cpp
r39377 r39380 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 == TRUE || fBinary == FALSE || fBinary == -1, VERR_INVALID_PARAMETER); 440 AssertReturn(fCurrentCodeSet == TRUE || fCurrentCodeSet == 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 != FALSE; 446 446 if (fCurrentCodeSet != -1) 447 pStream->fCurrentCodeSet = fCurrentCodeSet != false;447 pStream->fCurrentCodeSet = fCurrentCodeSet != FALSE; 448 448 449 449 rtStrmUnlock(pStream);
Note:
See TracChangeset
for help on using the changeset viewer.