Changeset 6414 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Jan 21, 2008 3:34:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r6413 r6414 1383 1383 } 1384 1384 1385 int vbsfSetFileInfo(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLHANDLE Handle, uint32_t flags, uint32_t *pcbBuffer, uint8_t *pBuffer)1385 static int vbsfSetFileInfo(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLHANDLE Handle, uint32_t flags, uint32_t *pcbBuffer, uint8_t *pBuffer) 1386 1386 { 1387 1387 SHFLFILEHANDLE *pHandle = (SHFLFILEHANDLE *)vbsfQueryHandle(Handle, SHFL_HF_TYPE_DIR|SHFL_HF_TYPE_FILE); … … 1394 1394 return VERR_INVALID_PARAMETER; 1395 1395 } 1396 1397 /* is the guest allowed to write to this share? */1398 bool fWritable;1399 rc = vbsfMappingsQueryWritable (pClient, root, &fWritable);1400 if (RT_FAILURE(rc) || !fWritable)1401 return VERR_WRITE_PROTECT;1402 1396 1403 1397 *pcbBuffer = 0; … … 1468 1462 1469 1463 1470 int vbsfSetEndOfFile(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLHANDLE Handle, uint32_t flags, uint32_t *pcbBuffer, uint8_t *pBuffer)1464 static int vbsfSetEndOfFile(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLHANDLE Handle, uint32_t flags, uint32_t *pcbBuffer, uint8_t *pBuffer) 1471 1465 { 1472 1466 SHFLFILEHANDLE *pHandle = (SHFLFILEHANDLE *)vbsfQueryHandle(Handle, SHFL_HF_TYPE_FILE); … … 1479 1473 return VERR_INVALID_PARAMETER; 1480 1474 } 1481 1482 /* is the guest allowed to write to this share? */1483 bool fWritable;1484 rc = vbsfMappingsQueryWritable (pClient, root, &fWritable);1485 if (RT_FAILURE(rc) || !fWritable)1486 return VERR_WRITE_PROTECT;1487 1488 rc = VINF_SUCCESS;1489 1475 1490 1476 *pcbBuffer = 0;
Note:
See TracChangeset
for help on using the changeset viewer.