- Timestamp:
- Aug 3, 2016 2:43:39 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r62919 r62921 631 631 int DrvAudioHlpSanitizeFileName(char *pszPath, size_t cbPath) 632 632 { 633 RT_NOREF(cbPath); 633 634 int rc = VINF_SUCCESS; 634 635 #ifdef RT_OS_WINDOWS … … 652 653 rc = VERR_INVALID_UTF8_ENCODING; 653 654 #else 654 RT_NOREF( )655 RT_NOREF(pszPath); 655 656 #endif 656 657 return rc; … … 679 680 { 680 681 char szFilePath[RTPATH_MAX]; 681 size_t cchFilePath =RTStrPrintf(szFilePath, sizeof(szFilePath), "%s", pszPath);682 RTStrPrintf(szFilePath, sizeof(szFilePath), "%s", pszPath); 682 683 683 684 /* Create it when necessary. */ … … 756 757 /** @todo Validate fOpen flags. */ 757 758 AssertPtrReturn(pProps, VERR_INVALID_POINTER); 758 /** @todo Validate fFlags flags. */759 RT_NOREF(fFlags); /** @todo Validate fFlags flags. */ 759 760 760 761 Assert(pProps->cChannels); … … 861 862 size_t DrvAudioHlpWAVFileGetDataSize(PPDMAUDIOFILE pFile) 862 863 { 863 AssertPtrReturn(pFile, VERR_INVALID_POINTER);864 AssertPtrReturn(pFile, 0); 864 865 865 866 Assert(pFile->enmType == PDMAUDIOFILETYPE_WAV); … … 879 880 * @param cbBuf Size (in bytes) of audio data to write. 880 881 * @param fFlags Additional write flags. Not being used at the moment and must be 0. 881 *882 * @remark883 882 */ 884 883 int DrvAudioHlpWAVFileWrite(PPDMAUDIOFILE pFile, const void *pvBuf, size_t cbBuf, uint32_t fFlags)
Note:
See TracChangeset
for help on using the changeset viewer.