Update dll.c

Update dll.c
This commit is contained in:
blueloveTH 2026-03-18 15:02:00 +08:00
parent 7614bdcc4a
commit a69cca59f4

View File

@ -60,10 +60,7 @@ int load_module_from_dll_desktop_only(const char* path) PY_RAISE PY_RETURN {
if(dll == NULL) return 0;
py_module_initialize_t f_init = (py_module_initialize_t)dlsym(dll, f_init_name);
#endif
if(f_init == NULL) {
RuntimeError("%s() not found in '%s'", f_init_name, path);
return -1;
}
if(f_init == NULL) return 0;
bool success = f_init();
if(!success) return -1;
return 1;