Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
4ff1a414
Kaydet (Commit)
4ff1a414
authored
Haz 14, 2011
tarafından
Brian Curtin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.2 - update to the fix for #12084
üst
c9d6a501
c8be8407
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
posixmodule.c
Modules/posixmodule.c
+11
-10
No files found.
Modules/posixmodule.c
Dosyayı görüntüle @
4ff1a414
...
...
@@ -1131,6 +1131,11 @@ get_target_path(HANDLE hdl, wchar_t **target_path)
return
FALSE
;
buf
=
(
wchar_t
*
)
malloc
((
buf_size
+
1
)
*
sizeof
(
wchar_t
));
if
(
!
buf
)
{
SetLastError
(
ERROR_OUTOFMEMORY
);
return
FALSE
;
}
result_length
=
Py_GetFinalPathNameByHandleW
(
hdl
,
buf
,
buf_size
,
VOLUME_NAME_DOS
);
...
...
@@ -1165,11 +1170,9 @@ win32_xstat_impl(const char *path, struct win32_stat *result,
const
char
*
dot
;
if
(
!
check_GetFinalPathNameByHandle
())
{
/* If the OS doesn't have GetFinalPathNameByHandle, return a
NotImplementedError. */
PyErr_SetString
(
PyExc_NotImplementedError
,
"GetFinalPathNameByHandle not available on this platform"
);
return
-
1
;
/* If the OS doesn't have GetFinalPathNameByHandle, don't
traverse reparse point. */
traverse
=
FALSE
;
}
hFile
=
CreateFileA
(
...
...
@@ -1263,11 +1266,9 @@ win32_xstat_impl_w(const wchar_t *path, struct win32_stat *result,
const
wchar_t
*
dot
;
if
(
!
check_GetFinalPathNameByHandle
())
{
/* If the OS doesn't have GetFinalPathNameByHandle, return a
NotImplementedError. */
PyErr_SetString
(
PyExc_NotImplementedError
,
"GetFinalPathNameByHandle not available on this platform"
);
return
-
1
;
/* If the OS doesn't have GetFinalPathNameByHandle, don't
traverse reparse point. */
traverse
=
FALSE
;
}
hFile
=
CreateFileW
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment