Changeset 51254 in vbox for trunk/include/VBox
- Timestamp:
- May 15, 2014 8:00:46 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/shflsvc.h
r51250 r51254 177 177 DECLINLINE(uint32_t) ShflStringSizeOfBuffer(PCSHFLSTRING pString) 178 178 { 179 return pString ? sizeof (SHFLSTRING) - sizeof (pString->String) + pString->u16Size: 0;179 return pString ? sizeof(SHFLSTRING) - sizeof(pString->String) + pString->u16Size : 0; 180 180 } 181 181 182 182 DECLINLINE(uint32_t) ShflStringLength(PCSHFLSTRING pString) 183 183 { 184 return pString ? pString->u16Length: 0;184 return pString ? pString->u16Length : 0; 185 185 } 186 186 … … 188 188 { 189 189 PSHFLSTRING pString = NULL; 190 191 uint32_t u32HeaderSize = sizeof (SHFLSTRING) - sizeof (pString->String); 192 193 /* Check that the buffer size is big enough to hold a zero sized string190 const uint32_t u32HeaderSize = sizeof(SHFLSTRING); 191 192 /* 193 * Check that the buffer size is big enough to hold a zero sized string 194 194 * and is not too big to fit into 16 bit variables. 195 195 */
Note:
See TracChangeset
for help on using the changeset viewer.