Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f25c2d0

Browse filesBrowse files
authored
Merge pull request #23051 from Biswa96/fix-error-mingw
2 parents 1f7151e + c321d80 commit f25c2d0
Copy full SHA for f25c2d0

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/_tkagg.cpp

Copy file name to clipboardExpand all lines: src/_tkagg.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ void load_tkinter_funcs(void)
259259
HANDLE process = GetCurrentProcess(); // Pseudo-handle, doesn't need closing.
260260
HMODULE* modules = NULL;
261261
DWORD size;
262+
bool tcl_ok = false, tk_ok = false;
262263
if (!EnumProcessModules(process, NULL, 0, &size)) {
263264
PyErr_SetFromWindowsErr(0);
264265
goto exit;
@@ -271,7 +272,6 @@ void load_tkinter_funcs(void)
271272
PyErr_SetFromWindowsErr(0);
272273
goto exit;
273274
}
274-
bool tcl_ok = false, tk_ok = false;
275275
for (unsigned i = 0; i < size / sizeof(HMODULE); ++i) {
276276
if (!tcl_ok) {
277277
tcl_ok = load_tcl(modules[i]);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.