forked from len0rd/rockbox
Don't pass NULL to dlclose. Stops the simulator crashing if there's a problem loading a plugin or codec.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9003 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a1635c2b17
commit
5f40aac300
2 changed files with 1 additions and 2 deletions
|
|
@ -179,3 +179,4 @@ Rui Marinho
|
||||||
Alun Thomas
|
Alun Thomas
|
||||||
Nils Wallménius
|
Nils Wallménius
|
||||||
Naoaki Okazaki
|
Naoaki Okazaki
|
||||||
|
Will Dyson
|
||||||
|
|
|
||||||
|
|
@ -361,7 +361,6 @@ void *sim_codec_load_ram(char* codecptr, int size,
|
||||||
#else
|
#else
|
||||||
DEBUGF("dlopen(%s): %s\n", path, dlerror());
|
DEBUGF("dlopen(%s): %s\n", path, dlerror());
|
||||||
#endif
|
#endif
|
||||||
dlclose(*pd);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -399,7 +398,6 @@ void *sim_plugin_load(char *plugin, void **pd)
|
||||||
#else
|
#else
|
||||||
DEBUGF("dlopen(%s): %s\n", path, dlerror());
|
DEBUGF("dlopen(%s): %s\n", path, dlerror());
|
||||||
#endif
|
#endif
|
||||||
dlclose(*pd);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue