mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Issue #13772: fix _check_dirA(): call *A() functions, not *W() functions
This commit is contained in:
parent
e7e7eba108
commit
5a4367600f
1 changed files with 2 additions and 2 deletions
|
@ -6844,9 +6844,9 @@ int _check_dirA(char *src, char *dest)
|
|||
|
||||
/* dest_parent = os.path.dirname(dest) */
|
||||
strcpy(dest_parent, dest);
|
||||
_dirnameW(dest_parent);
|
||||
_dirnameA(dest_parent);
|
||||
/* src_resolved = os.path.join(dest_parent, src) */
|
||||
_joinW(src_resolved, dest_parent, src);
|
||||
_joinA(src_resolved, dest_parent, src);
|
||||
return (
|
||||
GetFileAttributesExA(src_resolved, GetFileExInfoStandard, &src_info)
|
||||
&& src_info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue