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 …]
3932 wchar_t *wnamebuf = NULL; in _listdir_windows_no_opendir() local3945 wnamebuf = PyMem_New(wchar_t, len + 5); in _listdir_windows_no_opendir()3946 if (!wnamebuf) { in _listdir_windows_no_opendir()3950 wcscpy(wnamebuf, po_wchars); in _listdir_windows_no_opendir()3952 wchar_t wch = wnamebuf[len-1]; in _listdir_windows_no_opendir()3954 wnamebuf[len++] = SEP; in _listdir_windows_no_opendir()3955 wcscpy(wnamebuf + len, L"*.*"); in _listdir_windows_no_opendir()3961 hFindFile = FindFirstFileW(wnamebuf, &wFileData); in _listdir_windows_no_opendir()4014 PyMem_Free(wnamebuf); in _listdir_windows_no_opendir()