Added error message in dynlink_impl_interface_load_win32 when unable to load library
#include <dynlink/dynlink_impl.h>
+#include <log/log.h>
+
#include <string.h>
#define WIN32_LEAN_AND_MEAN
@@ -44,6 +46,8 @@ dynlink_impl dynlink_impl_interface_load_win32(dynlink handle)
return (dynlink_impl)impl;
}
+ log_write("metacall", LOG_LEVEL_ERROR, "Failed to load: %s with error code: %d", dynlink_get_name_impl(handle), GetLastError());
+
return NULL;
}
