diff --git a/compile.mk b/compile.mk index 8e598d5a..7b61a7f9 100644 --- a/compile.mk +++ b/compile.mk @@ -29,7 +29,7 @@ endif OBJECTS += $(patsubst %, build/%.o, $(SOURCES)) -DEPS = $(patsubst %.o, %.d, $(OBJECTS)) +DEPS = $(patsubst %, build/%.d, $(SOURCES)) # Final targets diff --git a/src/plugin.cpp b/src/plugin.cpp index 5a74e794..07ee7583 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -238,7 +238,7 @@ void pluginDestroy() { // Free library handle #if ARCH_WIN if (plugin->handle) - FreeLibrary(plugin->handle); + FreeLibrary((HINSTANCE)plugin->handle); #elif ARCH_LIN || ARCH_MAC if (plugin->handle) dlclose(plugin->handle);