Changeset 70054 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Dec 11, 2017 11:50:39 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 119593
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r70022 r70054 1334 1334 if (pFile->enmType == PDMAUDIOFILETYPE_RAW) 1335 1335 { 1336 if (pFile->hFile != NIL_RTFILE) 1337 { 1336 if (RTFileIsValid(pFile->hFile)) 1338 1337 rc = RTFileClose(pFile->hFile); 1339 pFile->hFile = NIL_RTFILE;1340 }1341 1338 } 1342 1339 else if (pFile->enmType == PDMAUDIOFILETYPE_WAV) 1343 1340 { 1344 if ( pFile->hFile != NIL_RTFILE)1341 if (RTFileIsValid(pFile->hFile)) 1345 1342 { 1346 1343 PAUDIOWAVFILEDATA pData = (PAUDIOWAVFILEDATA)pFile->pvData; … … 1352 1349 1353 1350 rc = RTFileClose(pFile->hFile); 1354 pFile->hFile = NIL_RTFILE;1355 1351 } 1356 1352 … … 1375 1371 if (RT_SUCCESS(rc)) 1376 1372 { 1373 pFile->hFile = NIL_RTFILE; 1377 1374 LogRel2(("Audio: Closed file '%s' (%zu bytes)\n", pFile->szName, cbSize)); 1378 1375 } … … 1394 1391 1395 1392 int rc = RTFileDelete(pFile->szName); 1393 1394 if (rc == VERR_FILE_NOT_FOUND) /* Don't bitch if the file is not around (anymore). */ 1395 rc = VINF_SUCCESS; 1396 1396 1397 if (RT_FAILURE(rc)) 1397 1398 LogRel(("Audio: Failed deleting file '%s', rc=%Rrc\n", pFile->szName, rc));
Note:
See TracChangeset
for help on using the changeset viewer.