Changeset 19111 in vbox for trunk/src/VBox/Additions/linux/module
- Timestamp:
- Apr 22, 2009 1:46:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/module/vboxmod.c
r19110 r19111 124 124 /** HGCM connection ID */ 125 125 uint32_t client_id; 126 } hgcm_connections[MAX_HGCM_CONNECTIONS] 126 } hgcm_connections[MAX_HGCM_CONNECTIONS] 127 127 = 128 128 { … … 442 442 443 443 AssertPtrReturn(ppBuf, -EINVAL); 444 /* Empty buffers are allowed, but then the user pointer should be NULL */ 445 AssertReturn(((cb > 0) && VALID_PTR(pUser)) || (pUser == NULL), -EINVAL); 444 /* Empty buffers are allowed, but then the user pointer should be NULL. */ 445 AssertReturn((cb > 0 && VALID_PTR(pUser)) || (cb == 0 && pUser == NULL), 446 -EINVAL); 446 447 447 448 pBuf = RTMemAlloc(sizeof(*pBuf)); … … 961 962 962 963 /* Deal with variable size ioctls first. */ 963 #ifdef DEBUG /* Only allow random user applications to spam the log in 964 #ifdef DEBUG /* Only allow random user applications to spam the log in 964 965 * debug additions builds */ 965 966 if ( VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_LOG(0)) … … 1652 1653 rcVBox = VbglGRPerform(&infoReq->header); 1653 1654 } 1654 if ( infoReq 1655 && ( RT_FAILURE(rcVBox) 1655 if ( infoReq 1656 && ( RT_FAILURE(rcVBox) 1656 1657 || RT_FAILURE(infoReq->header.rc))) 1657 1658 {
Note:
See TracChangeset
for help on using the changeset viewer.