Changeset 70022 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Dec 8, 2017 12:26:01 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r70014 r70022 1345 1345 { 1346 1346 PAUDIOWAVFILEDATA pData = (PAUDIOWAVFILEDATA)pFile->pvData; 1347 AssertPtr(pData); 1348 1349 /* Update the header with the current data size. */ 1350 RTFileWriteAt(pFile->hFile, 0, &pData->Hdr, sizeof(pData->Hdr), NULL); 1347 if (pData) /* The .WAV file data only is valid when a file actually has been created. */ 1348 { 1349 /* Update the header with the current data size. */ 1350 RTFileWriteAt(pFile->hFile, 0, &pData->Hdr, sizeof(pData->Hdr), NULL); 1351 } 1351 1352 1352 1353 rc = RTFileClose(pFile->hFile); … … 1421 1422 { 1422 1423 PAUDIOWAVFILEDATA pData = (PAUDIOWAVFILEDATA)pFile->pvData; 1423 AssertPtr(pData); 1424 1425 cbSize = pData->Hdr.u32Size2; 1424 if (pData) /* The .WAV file data only is valid when a file actually has been created. */ 1425 cbSize = pData->Hdr.u32Size2; 1426 1426 } 1427 1427
Note:
See TracChangeset
for help on using the changeset viewer.