🌐 AI搜索 & 代理 主页
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/_tkagg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ void load_tkinter_funcs(void)
HANDLE process = GetCurrentProcess(); // Pseudo-handle, doesn't need closing.
HMODULE* modules = NULL;
DWORD size;
bool tcl_ok = false, tk_ok = false;
if (!EnumProcessModules(process, NULL, 0, &size)) {
PyErr_SetFromWindowsErr(0);
goto exit;
Expand All @@ -271,7 +272,6 @@ void load_tkinter_funcs(void)
PyErr_SetFromWindowsErr(0);
goto exit;
}
bool tcl_ok = false, tk_ok = false;
for (unsigned i = 0; i < size / sizeof(HMODULE); ++i) {
if (!tcl_ok) {
tcl_ok = load_tcl(modules[i]);
Expand Down