Changeset 10626 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jul 15, 2008 7:38:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp
r10606 r10626 24 24 * Header Files * 25 25 *******************************************************************************/ 26 #include <iprt/mem.h> 26 27 #include <VBox/log.h> 27 28 … … 58 59 * Handle the entire request in one go. 59 60 */ 60 return vbglR3DoIOCtl(VBOXGUEST_IOCTL_LOG(cb), (char *)pch, cb); 61 if (!pch || !cb) 62 return VINF_SUCCESS; 63 64 void *pvTmp = RTMemDup(pch, cb); 65 if (!pvTmp) 66 return VERR_NO_MEMORY; 67 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_LOG(cb), pvTmp, cb); 68 RTMemFree(pvTmp); 69 return rc; 61 70 62 71 #else
Note:
See TracChangeset
for help on using the changeset viewer.