- Timestamp:
- Sep 11, 2015 1:52:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp
r57538 r57717 1547 1547 } 1548 1548 1549 static int dsoundConfigQueryStringAlloc(PCFGMNODE pNode, const char *pszName, char **ppszString) 1550 { 1551 /** @todo r=bird: What's wrong with CFGMR3QueryStringAlloc ?? */ 1552 size_t cbString; 1553 int rc = CFGMR3QuerySize(pNode, pszName, &cbString); 1549 static LPCGUID dsoundConfigQueryGUID(PCFGMNODE pCfg, const char *pszName, RTUUID *pUuid) 1550 { 1551 LPCGUID pGuid = NULL; 1552 1553 char *pszGuid = NULL; 1554 int rc = CFGMR3QueryStringAlloc(pCfg, pszName, &pszGuid); 1554 1555 if (RT_SUCCESS(rc)) 1555 {1556 char *pszString = RTStrAlloc(cbString);1557 if (pszString)1558 {1559 rc = CFGMR3QueryString(pNode, pszName, pszString, cbString);1560 if (RT_SUCCESS(rc))1561 *ppszString = pszString;1562 else1563 RTStrFree(pszString);1564 }1565 else1566 rc = VERR_NO_MEMORY;1567 }1568 return rc;1569 }1570 1571 static LPCGUID dsoundConfigQueryGUID(PCFGMNODE pCfg, const char *pszName, RTUUID *pUuid)1572 {1573 LPCGUID pGuid = NULL;1574 1575 char *pszGuid = NULL;1576 dsoundConfigQueryStringAlloc(pCfg, pszName, &pszGuid);1577 if (pszGuid)1578 1556 { 1579 1557 int rc = RTUuidFromStr(pUuid, pszGuid);
Note:
See TracChangeset
for help on using the changeset viewer.