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
db01b3e0
Kaydet (Commit)
db01b3e0
authored
Eyl 17, 2016
tarafından
Steve Dower
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #27932: Prevent memory leak in win32_ver().
üst
ca56dd47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
platform.py
Lib/platform.py
+4
-2
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/platform.py
Dosyayı görüntüle @
db01b3e0
...
...
@@ -567,7 +567,7 @@ def _get_real_winver(maj, min, build):
return
maj
,
min
,
build
from
ctypes
import
(
c_buffer
,
POINTER
,
byref
,
create_unicode_buffer
,
Structure
,
WinDLL
)
Structure
,
WinDLL
,
_Pointer
)
from
ctypes.wintypes
import
DWORD
,
HANDLE
class
VS_FIXEDFILEINFO
(
Structure
):
...
...
@@ -586,6 +586,8 @@ def _get_real_winver(maj, min, build):
(
"dwFileDateMS"
,
DWORD
),
(
"dwFileDateLS"
,
DWORD
),
]
class
PVS_FIXEDFILEINFO
(
_Pointer
):
_type_
=
VS_FIXEDFILEINFO
kernel32
=
WinDLL
(
'kernel32'
)
version
=
WinDLL
(
'version'
)
...
...
@@ -611,7 +613,7 @@ def _get_real_winver(maj, min, build):
not
ver_block
):
return
maj
,
min
,
build
pvi
=
P
OINTER
(
VS_FIXEDFILEINFO
)
()
pvi
=
P
VS_FIXEDFILEINFO
()
if
not
version
.
VerQueryValueW
(
ver_block
,
""
,
byref
(
pvi
),
byref
(
DWORD
())):
return
maj
,
min
,
build
...
...
Misc/NEWS
Dosyayı görüntüle @
db01b3e0
...
...
@@ -214,6 +214,8 @@ Tools/Demos
Windows
-------
- Issue #27932: Prevent memory leak in win32_ver().
- Issue #27888: Prevent Windows installer from displaying console windows and
failing when pip cannot be installed/uninstalled.
...
...
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