| 255 | } |
| 256 | |
| 257 | static LPBYTE CaptureData(LPBYTE pbRootPtr, LPBYTE pbRootEnd, void * pvBuffer, size_t cbLength) |
| 258 | { |
| 259 | // Check whether there is enough data in the buffer |
| 260 | if((pbRootPtr + cbLength) > pbRootEnd) |
| 261 | return NULL; |
| 262 | |
| 263 | // Copy the data |
| 264 | memcpy(pvBuffer, pbRootPtr, cbLength); |
| 265 | return pbRootPtr + cbLength; |
| 266 | } |
| 267 | |
| 268 | //----------------------------------------------------------------------------- |
| 269 | // The TPathStop structure |
no outgoing calls
no test coverage detected