Changeset 6832 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Feb 6, 2008 3:24:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r6831 r6832 631 631 /* Open or create a file. */ 632 632 unsigned fOpen = 0; 633 633 bool fNoError = false; 634 634 635 635 int rc = vbsfConvertFileOpenFlags(pParms->CreateFlags, &fOpen); … … 667 667 pParms->Result = SHFL_FILE_EXISTS; 668 668 669 670 671 fNoError = true; 669 /* This actually isn't an error, because the file simply already exists, 670 so correct the rc before return later, to make the driver (VBoxSF.sys) happy. */ 671 fNoError = true; 672 672 break; 673 673 default: … … 746 746 } 747 747 748 749 750 748 /* Report the driver that all is okay, we're done here */ 749 if (fNoError) 750 rc = VINF_SUCCESS; 751 751 752 752 LogFlow(("vbsfOpenFile: rc = %Vrc\n", rc)); … … 810 810 if ( RT_SUCCESS(rc) 811 811 || (SHFL_CF_ACT_OPEN_IF_EXISTS == BIT_FLAG(pParms->CreateFlags, SHFL_CF_ACT_MASK_IF_EXISTS)) 812 || (SHFL_FILE_EXISTS == pParms->Result))/* Call of RTDirCreate() avbove failed, because already existing? */812 || (SHFL_FILE_EXISTS == pParms->Result)) /* Call of RTDirCreate() avbove failed, because already existing? */ 813 813 { 814 814 /* Open the directory now */
Note:
See TracChangeset
for help on using the changeset viewer.