mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
Log error code on dylib failure in Windows.
This commit is contained in:
parent
3c2591f71f
commit
37c29144d8
@ -240,7 +240,10 @@ void uninit_libsnes_sym(void)
|
||||
dylib_t dylib_load(const char *path)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return LoadLibrary(path);
|
||||
dylib_t lib = LoadLibrary(path);
|
||||
if (!lib)
|
||||
SSNES_ERR("Failed to load library, error code: 0x%x\n", (unsigned)GetLastError());
|
||||
return lib;
|
||||
#else
|
||||
return dlopen(path, RTLD_LAZY);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user