mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Merge 3.5
This commit is contained in:
commit
9fdaff30db
1 changed files with 1 additions and 1 deletions
|
|
@ -1354,7 +1354,7 @@ win32_wchdir(LPCWSTR path)
|
||||||
result = GetCurrentDirectoryW(Py_ARRAY_LENGTH(path_buf), new_path);
|
result = GetCurrentDirectoryW(Py_ARRAY_LENGTH(path_buf), new_path);
|
||||||
if (!result)
|
if (!result)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (result > Py_ARRAY_LENGTH(new_path)) {
|
if (result > Py_ARRAY_LENGTH(path_buf)) {
|
||||||
new_path = PyMem_RawMalloc(result * sizeof(wchar_t));
|
new_path = PyMem_RawMalloc(result * sizeof(wchar_t));
|
||||||
if (!new_path) {
|
if (!new_path) {
|
||||||
SetLastError(ERROR_OUTOFMEMORY);
|
SetLastError(ERROR_OUTOFMEMORY);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue