https://github.com/python/cpython/commit/f37e8ff839afc5838643c76b302c2ad382d62632
commit: f37e8ff839afc5838643c76b302c2ad382d62632
branch: main
author: thexai <[email protected]>
committer: zooba <[email protected]>
date: 2026-09-08T16:51:25+01:00
summary:

gh-152433: Use regular LoadLibrary in UWP for Windows system libs (GH-156972)

files:
M Include/internal/pycore_fileutils_windows.h

diff --git a/Include/internal/pycore_fileutils_windows.h 
b/Include/internal/pycore_fileutils_windows.h
index 4c42f16beb12a4f..b79aa9fb4653765 100644
--- a/Include/internal/pycore_fileutils_windows.h
+++ b/Include/internal/pycore_fileutils_windows.h
@@ -55,11 +55,7 @@ static inline BOOL _Py_GetFileInformationByName(
     static int GetFileInformationByName_init = -1;
 
     if (GetFileInformationByName_init < 0) {
-#ifdef MS_WINDOWS_DESKTOP
         HMODULE hMod = LoadLibraryW(L"api-ms-win-core-file-l2-1-4");
-#else
-        HMODULE hMod = LoadPackagedLibrary(L"api-ms-win-core-file-l2-1-4", 0);
-#endif
         GetFileInformationByName_init = 0;
         if (hMod) {
             GetFileInformationByName = 
(PGetFileInformationByName)GetProcAddress(

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to