mirror of
https://github.com/pocketpy/pocketpy
synced 2026-03-21 20:50:16 +00:00
post fix
Update dll.c Update dll.c
This commit is contained in:
parent
7614bdcc4a
commit
a69cca59f4
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user