Searched refs:wbuf2 (Results 1 – 2 of 2) sorted by relevance
2224 wchar_t *wbuf2 = wbuf; in posix_getcwdu() local2232 wbuf2 = malloc(len * sizeof(wchar_t)); in posix_getcwdu()2233 if (wbuf2) in posix_getcwdu()2234 len = GetCurrentDirectoryW(len, wbuf2); in posix_getcwdu()2237 if (!wbuf2) { in posix_getcwdu()2242 if (wbuf2 != wbuf) free(wbuf2); in posix_getcwdu()2245 resobj = PyUnicode_FromWideChar(wbuf2, len); in posix_getcwdu()2246 if (wbuf2 != wbuf) free(wbuf2); in posix_getcwdu()
3272 wchar_t *wbuf2 = wbuf; in posix_getcwd() local3281 wbuf2 = PyMem_RawMalloc(len * sizeof(wchar_t)); in posix_getcwd()3282 if (wbuf2) in posix_getcwd()3283 len = GetCurrentDirectoryW(len, wbuf2); in posix_getcwd()3286 if (!wbuf2) { in posix_getcwd()3291 if (wbuf2 != wbuf) in posix_getcwd()3292 PyMem_RawFree(wbuf2); in posix_getcwd()3295 resobj = PyUnicode_FromWideChar(wbuf2, len); in posix_getcwd()3296 if (wbuf2 != wbuf) in posix_getcwd()3297 PyMem_RawFree(wbuf2); in posix_getcwd()