Changeset 74518 in vbox
- Timestamp:
- Sep 28, 2018 11:47:33 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r74507 r74518 2438 2438 AssertPtr(pDrvAudioInst->pReg); 2439 2439 2440 #if 0 /** @todo r=bird: Don't use strlen to check for empty strings. Don't use RTStrPrintf to do RTStrCopy work. */2441 char szDriver[64];2442 RTStrPrintf(szDriver, RT_ELEMENTS(szDriver), "%s", pDrvAudioInst->pReg->szName);2443 if (!strlen(szDriver))2444 {2445 RTStrPrintf(szDriver, RT_ELEMENTS(szDriver), "Untitled");2446 AssertFailed(); /* Should never happen. */2447 }2448 2449 RTStrPrintf(pStream->szName, RT_ELEMENTS(pStream->szName), "[%s] %s",2450 szDriver, strlen(pCfgHost->szName) ? pCfgHost->szName : "<Untitled>");2451 #else2452 2440 Assert(pDrvAudioInst->pReg->szName[0] != '\0'); 2453 2441 RTStrPrintf(pStream->szName, RT_ELEMENTS(pStream->szName), "[%s] %s", 2454 2442 pDrvAudioInst->pReg->szName[0] != '\0' ? pDrvAudioInst->pReg->szName : "Untitled", 2455 2443 pCfgHost->szName[0] != '\0' ? pCfgHost->szName : "<Untitled>"); 2456 #endif 2444 2457 2445 pStream->enmDir = pCfgHost->enmDir; 2458 2446
Note:
See TracChangeset
for help on using the changeset viewer.