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
50590f11
Kaydet (Commit)
50590f11
authored
Ock 14, 2012
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use GetModuleHandleW to avoid *A functions where possible.
üst
d61fdc17
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
posixmodule.c
Modules/posixmodule.c
+3
-3
frozen_dllmain.c
PC/frozen_dllmain.c
+1
-1
winreg.c
PC/winreg.c
+4
-4
No files found.
Modules/posixmodule.c
Dosyayı görüntüle @
50590f11
...
...
@@ -1155,7 +1155,7 @@ check_GetFinalPathNameByHandle()
/* only recheck */
if
(
!
has_GetFinalPathNameByHandle
)
{
hKernel32
=
GetModuleHandle
(
"KERNEL32"
);
hKernel32
=
GetModuleHandle
W
(
L
"KERNEL32"
);
*
(
FARPROC
*
)
&
Py_GetFinalPathNameByHandleA
=
GetProcAddress
(
hKernel32
,
"GetFinalPathNameByHandleA"
);
*
(
FARPROC
*
)
&
Py_GetFinalPathNameByHandleW
=
GetProcAddress
(
hKernel32
,
...
...
@@ -6526,7 +6526,7 @@ check_CreateSymbolicLinkW()
/* only recheck */
if
(
has_CreateSymbolicLinkW
)
return
has_CreateSymbolicLinkW
;
hKernel32
=
GetModuleHandle
(
"KERNEL32"
);
hKernel32
=
GetModuleHandle
W
(
L
"KERNEL32"
);
*
(
FARPROC
*
)
&
Py_CreateSymbolicLinkW
=
GetProcAddress
(
hKernel32
,
"CreateSymbolicLinkW"
);
if
(
Py_CreateSymbolicLinkW
)
...
...
@@ -9365,7 +9365,7 @@ win32_urandom(PyObject *self, PyObject *args)
/* Obtain handle to the DLL containing CryptoAPI
This should not fail */
hAdvAPI32
=
GetModuleHandle
(
"advapi32.dll"
);
hAdvAPI32
=
GetModuleHandle
W
(
L
"advapi32.dll"
);
if
(
hAdvAPI32
==
NULL
)
return
win32_error
(
"GetModuleHandle"
,
NULL
);
...
...
PC/frozen_dllmain.c
Dosyayı görüntüle @
50590f11
...
...
@@ -118,7 +118,7 @@ BOOL CallModuleDllMain(char *modName, DWORD dwReason)
BOOL
(
WINAPI
*
pfndllmain
)(
HINSTANCE
,
DWORD
,
LPVOID
);
char
funcName
[
255
];
HMODULE
hmod
=
GetModuleHandle
(
NULL
);
HMODULE
hmod
=
GetModuleHandle
W
(
NULL
);
strcpy
(
funcName
,
"_DllMain"
);
strcat
(
funcName
,
modName
);
strcat
(
funcName
,
"@12"
);
// stdcall convention.
...
...
PC/winreg.c
Dosyayı görüntüle @
50590f11
...
...
@@ -1066,7 +1066,7 @@ PyDeleteKeyEx(PyObject *self, PyObject *args, PyObject *kwargs)
/* Only available on 64bit platforms, so we must load it
dynamically. */
hMod
=
GetModuleHandle
(
"advapi32.dll"
);
hMod
=
GetModuleHandle
W
(
L
"advapi32.dll"
);
if
(
hMod
)
pfn
=
(
RDKEFunc
)
GetProcAddress
(
hMod
,
"RegDeleteKeyExW"
);
...
...
@@ -1590,7 +1590,7 @@ PyDisableReflectionKey(PyObject *self, PyObject *args)
/* Only available on 64bit platforms, so we must load it
dynamically.*/
hMod
=
GetModuleHandle
(
"advapi32.dll"
);
hMod
=
GetModuleHandle
W
(
L
"advapi32.dll"
);
if
(
hMod
)
pfn
=
(
RDRKFunc
)
GetProcAddress
(
hMod
,
"RegDisableReflectionKey"
);
...
...
@@ -1626,7 +1626,7 @@ PyEnableReflectionKey(PyObject *self, PyObject *args)
/* Only available on 64bit platforms, so we must load it
dynamically.*/
hMod
=
GetModuleHandle
(
"advapi32.dll"
);
hMod
=
GetModuleHandle
W
(
L
"advapi32.dll"
);
if
(
hMod
)
pfn
=
(
RERKFunc
)
GetProcAddress
(
hMod
,
"RegEnableReflectionKey"
);
...
...
@@ -1663,7 +1663,7 @@ PyQueryReflectionKey(PyObject *self, PyObject *args)
/* Only available on 64bit platforms, so we must load it
dynamically.*/
hMod
=
GetModuleHandle
(
"advapi32.dll"
);
hMod
=
GetModuleHandle
W
(
L
"advapi32.dll"
);
if
(
hMod
)
pfn
=
(
RQRKFunc
)
GetProcAddress
(
hMod
,
"RegQueryReflectionKey"
);
...
...
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