Searched refs:wnamebuf (Results 1 – 2 of 2) sorted by relevance
2305 Py_UNICODE *wnamebuf; in posix_listdir() local2308 wnamebuf = malloc((len + 5) * sizeof(wchar_t)); in posix_listdir()2309 if (!wnamebuf) { in posix_listdir()2313 wcscpy(wnamebuf, wpath); in posix_listdir()2315 Py_UNICODE wch = wnamebuf[len-1]; in posix_listdir()2317 wnamebuf[len++] = L'\\'; in posix_listdir()2318 wcscpy(wnamebuf + len, L"*.*"); in posix_listdir()2321 free(wnamebuf); in posix_listdir()2325 hFindFile = FindFirstFileW(wnamebuf, &wFileData); in posix_listdir()2330 free(wnamebuf); in posix_listdir()[all …]
3466 wchar_t *wnamebuf = NULL; in _listdir_windows_no_opendir() local3479 wnamebuf = PyMem_New(wchar_t, len + 5); in _listdir_windows_no_opendir()3480 if (!wnamebuf) { in _listdir_windows_no_opendir()3484 wcscpy(wnamebuf, po_wchars); in _listdir_windows_no_opendir()3486 wchar_t wch = wnamebuf[len-1]; in _listdir_windows_no_opendir()3488 wnamebuf[len++] = SEP; in _listdir_windows_no_opendir()3489 wcscpy(wnamebuf + len, L"*.*"); in _listdir_windows_no_opendir()3495 hFindFile = FindFirstFileW(wnamebuf, &wFileData); in _listdir_windows_no_opendir()3548 PyMem_Free(wnamebuf); in _listdir_windows_no_opendir()