Home
last modified time | relevance | path

Searched refs:retBuf (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/PC/
Dwinreg.c1417 wchar_t *retBuf; in winreg_QueryValue_impl() local
1430 retBuf = (wchar_t *) PyMem_Malloc(bufSize); in winreg_QueryValue_impl()
1431 if (retBuf == NULL) in winreg_QueryValue_impl()
1436 rc = RegQueryValueW(key, sub_key, retBuf, &retSize); in winreg_QueryValue_impl()
1441 tmp = (wchar_t *) PyMem_Realloc(retBuf, bufSize); in winreg_QueryValue_impl()
1443 PyMem_Free(retBuf); in winreg_QueryValue_impl()
1446 retBuf = tmp; in winreg_QueryValue_impl()
1450 PyMem_Free(retBuf); in winreg_QueryValue_impl()
1455 retStr = PyUnicode_FromWideChar(retBuf, wcslen(retBuf)); in winreg_QueryValue_impl()
1456 PyMem_Free(retBuf); in winreg_QueryValue_impl()
[all …]
/external/python/cpython2/PC/
D_winreg.c1409 char *retBuf; in PyQueryValue() local
1428 retBuf = (char *) PyMem_Malloc(bufSize); in PyQueryValue()
1429 if (retBuf == NULL) in PyQueryValue()
1434 rc = RegQueryValue(hKey, subKey, retBuf, &retSize); in PyQueryValue()
1439 tmp = (char *) PyMem_Realloc(retBuf, bufSize); in PyQueryValue()
1441 PyMem_Free(retBuf); in PyQueryValue()
1444 retBuf = tmp; in PyQueryValue()
1448 PyMem_Free(retBuf); in PyQueryValue()
1453 if (retBuf[retSize-1] == '\x00') in PyQueryValue()
1455 retStr = PyString_FromStringAndSize(retBuf, retSize); in PyQueryValue()
[all …]