Changeset 95084 in vbox for trunk/src/VBox/Runtime/r3/win
- Timestamp:
- May 24, 2022 8:49:36 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/pipe-win.cpp
r95083 r95084 1213 1213 * 1214 1214 * Prior to XP SP1 (?), the returned cbAvailable value was not adjusted 1215 * by read position in the current message/buffer, so it could1216 * potentially be too high. This could cause the caller to try read1217 * more data than what's actually available, which may cause the read1218 * toblock when the caller thought it wouldn't.1215 * by the read position in the current message/buffer, so it could 1216 * potentially be too high. This may cause the caller to try read more 1217 * data than what's actually available, which may cause the read to 1218 * block when the caller thought it wouldn't. 1219 1219 * 1220 * To get the accurate size, we have to provide and output buffer1221 * and see how much we actually get back in it, as the data peeking1222 * works correctly (as you would expect).1220 * To get an accurate readable size, we have to provide an output 1221 * buffer and see how much we actually get back in it, as the data 1222 * peeking works correctly (as you would expect). 1223 1223 */ 1224 1224 if (cbAvailable == 0 || g_enmWinVer >= kRTWinOSType_XP64)
Note:
See TracChangeset
for help on using the changeset viewer.