A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/python/cpython/commit/ad4a20b87d79a619ffbdea3f26848780899494e5 below:

Avoid unsafe DLL load on Windows 7 and earlier (GH-1… · python/cpython@ad4a20b · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+5

-2

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+5

-2

lines changed Original file line number Diff line number Diff line change

@@ -0,0 +1 @@

1 +

Avoid unsafe load of ``api-ms-win-core-path-l1-1-0.dll`` at startup on Windows 7.

Original file line number Diff line number Diff line change

@@ -251,7 +251,8 @@ static void

251 251

join(wchar_t *buffer, const wchar_t *stuff)

252 252

{

253 253

if (_PathCchCombineEx_Initialized == 0) {

254 -

HMODULE pathapi = LoadLibraryW(L"api-ms-win-core-path-l1-1-0.dll");

254 +

HMODULE pathapi = LoadLibraryExW(L"api-ms-win-core-path-l1-1-0.dll", NULL,

255 +

LOAD_LIBRARY_SEARCH_SYSTEM32);

255 256

if (pathapi) {

256 257

_PathCchCombineEx = (PPathCchCombineEx)GetProcAddress(pathapi, "PathCchCombineEx");

257 258

}

@@ -287,7 +288,8 @@ canonicalize(wchar_t *buffer, const wchar_t *path)

287 288

}

288 289 289 290

if (_PathCchCanonicalizeEx_Initialized == 0) {

290 -

HMODULE pathapi = LoadLibraryW(L"api-ms-win-core-path-l1-1-0.dll");

291 +

HMODULE pathapi = LoadLibraryExW(L"api-ms-win-core-path-l1-1-0.dll", NULL,

292 +

LOAD_LIBRARY_SEARCH_SYSTEM32);

291 293

if (pathapi) {

292 294

_PathCchCanonicalizeEx = (PPathCchCanonicalizeEx)GetProcAddress(pathapi, "PathCchCanonicalizeEx");

293 295

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4