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
516999e6
Kaydet (Commit)
516999e6
authored
Mar 07, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix bug introduced in rev. 42884.
üst
437567ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
posixmodule.c
Modules/posixmodule.c
+5
-3
No files found.
Modules/posixmodule.c
Dosyayı görüntüle @
516999e6
...
...
@@ -1640,7 +1640,7 @@ posix_listdir(PyObject *self, PyObject *args)
PyObject
*
d
,
*
v
;
HANDLE
hFindFile
;
BOOL
result
;
BOOL
result
=
FALSE
;
WIN32_FIND_DATA
FileData
;
/* MAX_PATH characters could mean a bigger encoded string */
char
namebuf
[
MAX_PATH
*
2
+
5
];
...
...
@@ -1679,7 +1679,7 @@ posix_listdir(PyObject *self, PyObject *args)
(
wFileData
.
cFileName
[
1
]
==
L'\0'
||
wFileData
.
cFileName
[
1
]
==
L'.'
&&
wFileData
.
cFileName
[
2
]
==
L'\0'
))
continue
;
goto
loop_w
;
v
=
PyUnicode_FromUnicode
(
wFileData
.
cFileName
,
wcslen
(
wFileData
.
cFileName
));
if
(
v
==
NULL
)
{
Py_DECREF
(
d
);
...
...
@@ -1693,6 +1693,7 @@ posix_listdir(PyObject *self, PyObject *args)
break
;
}
Py_DECREF
(
v
);
loop_w:
Py_BEGIN_ALLOW_THREADS
result
=
FindNextFileW
(
hFindFile
,
&
wFileData
);
Py_END_ALLOW_THREADS
...
...
@@ -1736,7 +1737,7 @@ posix_listdir(PyObject *self, PyObject *args)
(
FileData
.
cFileName
[
1
]
==
'\0'
||
FileData
.
cFileName
[
1
]
==
'.'
&&
FileData
.
cFileName
[
2
]
==
'\0'
))
continue
;
goto
loop_a
;
v
=
PyString_FromString
(
FileData
.
cFileName
);
if
(
v
==
NULL
)
{
Py_DECREF
(
d
);
...
...
@@ -1750,6 +1751,7 @@ posix_listdir(PyObject *self, PyObject *args)
break
;
}
Py_DECREF
(
v
);
loop_a:
Py_BEGIN_ALLOW_THREADS
result
=
FindNextFile
(
hFindFile
,
&
FileData
);
Py_END_ALLOW_THREADS
...
...
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