Skip to content

Commit f25c2d0

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_tkagg.cpp

+1-1
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)