gh-152433: Use regular LoadLibrary in UWP for Windows system libs (GH… · python/cpython@f37e8ff

GitHub

GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources

Original file line numberDiff line numberDiff line change@@ -55,11 +55,7 @@ static inline BOOL _Py_GetFileInformationByName(

5555staticintGetFileInformationByName_init=-1;

56565757if (GetFileInformationByName_init<0) {

58-#ifdefMS_WINDOWS_DESKTOP

5958HMODULEhMod=LoadLibraryW(L"api-ms-win-core-file-l2-1-4");

60-#else

61-HMODULEhMod=LoadPackagedLibrary(L"api-ms-win-core-file-l2-1-4", 0);

62-#endif

6359GetFileInformationByName_init=0;

6460if (hMod) {

6561GetFileInformationByName= (PGetFileInformationByName)GetProcAddress(