Changeset 77245 in vbox for trunk/src/VBox
- Timestamp:
- Feb 10, 2019 11:39:42 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/VBoxSharedFoldersSvc.cpp
r77243 r77245 666 666 667 667 /* Verify parameters values. */ 668 ASSERT_GUEST_STMT_BREAK(hFile != SHFL_HANDLE_ROOT, rc = =VERR_INVALID_PARAMETER);669 ASSERT_GUEST_STMT_BREAK(hFile != SHFL_HANDLE_NIL, rc = =VERR_INVALID_HANDLE);668 ASSERT_GUEST_STMT_BREAK(hFile != SHFL_HANDLE_ROOT, rc = VERR_INVALID_PARAMETER); 669 ASSERT_GUEST_STMT_BREAK(hFile != SHFL_HANDLE_NIL, rc = VERR_INVALID_HANDLE); 670 670 if (paParms[4].type == VBOX_HGCM_SVC_PARM_PTR) 671 ASSERT_GUEST_STMT_BREAK(cbRead <= paParms[4].u.pointer.size, rc = =VERR_INVALID_HANDLE);672 else 673 ASSERT_GUEST_STMT_BREAK(cbRead <= paParms[4].u.Pages.cb, rc = =VERR_OUT_OF_RANGE);671 ASSERT_GUEST_STMT_BREAK(cbRead <= paParms[4].u.pointer.size, rc = VERR_INVALID_HANDLE); 672 else 673 ASSERT_GUEST_STMT_BREAK(cbRead <= paParms[4].u.Pages.cb, rc = VERR_OUT_OF_RANGE); 674 674 675 675 /* Execute the function. */ … … 715 715 716 716 /* Verify parameters values. */ 717 ASSERT_GUEST_STMT_BREAK(hFile != SHFL_HANDLE_ROOT, rc = =VERR_INVALID_PARAMETER);718 ASSERT_GUEST_STMT_BREAK(hFile != SHFL_HANDLE_NIL, rc = =VERR_INVALID_HANDLE);717 ASSERT_GUEST_STMT_BREAK(hFile != SHFL_HANDLE_ROOT, rc = VERR_INVALID_PARAMETER); 718 ASSERT_GUEST_STMT_BREAK(hFile != SHFL_HANDLE_NIL, rc = VERR_INVALID_HANDLE); 719 719 if (paParms[4].type == VBOX_HGCM_SVC_PARM_PTR) 720 ASSERT_GUEST_STMT_BREAK(cbWrite <= paParms[4].u.pointer.size, rc = =VERR_INVALID_HANDLE);721 else 722 ASSERT_GUEST_STMT_BREAK(cbWrite <= paParms[4].u.Pages.cb, rc = =VERR_OUT_OF_RANGE);720 ASSERT_GUEST_STMT_BREAK(cbWrite <= paParms[4].u.pointer.size, rc = VERR_INVALID_HANDLE); 721 else 722 ASSERT_GUEST_STMT_BREAK(cbWrite <= paParms[4].u.Pages.cb, rc = VERR_OUT_OF_RANGE); 723 723 724 724 /* Execute the function. */
Note:
See TracChangeset
for help on using the changeset viewer.