- Timestamp:
- Apr 3, 2020 2:31:58 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r83489 r83533 1497 1497 uint32_t fOpenEx = 0; 1498 1498 for (size_t i = 0; i < aFlags.size(); i++) 1499 fOpenEx = aFlags[i];1499 fOpenEx |= aFlags[i]; 1500 1500 if (fOpenEx) 1501 1501 return VERR_INVALID_PARAMETER; /* FileOpenExFlag not implemented yet. */ … … 3772 3772 LogFlowThisFuncEnter(); 3773 3773 3774 GuestFileOpenInfo openInfo;3775 openInfo.mFilename = aPath;3776 openInfo.mCreationMode = aCreationMode;3777 3778 3774 /* Validate aAccessMode. */ 3779 3775 switch (aAccessMode) … … 3784 3780 RT_FALL_THRU(); 3785 3781 case FileAccessMode_ReadWrite: 3786 openInfo.mAccessMode = aAccessMode;3787 3782 break; 3788 3783 case FileAccessMode_AppendOnly: … … 3808 3803 RT_FALL_THRU(); 3809 3804 case FileOpenAction_AppendOrCreate: 3810 openInfo.mOpenAction = aOpenAction;3811 3805 break; 3812 3806 default: … … 3818 3812 { 3819 3813 case FileSharingMode_All: 3820 openInfo.mSharingMode = aSharingMode;3821 3814 break; 3822 3815 case FileSharingMode_Read: … … 3835 3828 uint32_t fOpenEx = 0; 3836 3829 for (size_t i = 0; i < aFlags.size(); i++) 3837 fOpenEx = aFlags[i];3830 fOpenEx |= aFlags[i]; 3838 3831 if (fOpenEx) 3839 3832 return setError(E_INVALIDARG, tr("Unsupported FileOpenExFlag value(s) in aFlags (%#x)"), fOpenEx); 3840 openInfo.mfOpenEx = fOpenEx;3841 3833 3842 3834 ComObjPtr <GuestFile> pFile;
Note:
See TracChangeset
for help on using the changeset viewer.