From d67e2f923bc3ac444967d7a03b63dae4d273933a Mon Sep 17 00:00:00 2001 From: matlo Date: Sun, 20 Jan 2019 12:16:02 +0100 Subject: [PATCH] Issues with non-ASCII chars in path or filename #604 * fix last commit --- core/Makefile | 2 +- core/gimx.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/Makefile b/core/Makefile index 1d213df5..7ef3cfa5 100644 --- a/core/Makefile +++ b/core/Makefile @@ -40,7 +40,7 @@ LDLIBS += `xml2-config --libs` ifneq ($(OS),Windows_NT) LDLIBS += -lm `pkg-config --libs ncursesw` -lbluetooth -lmhash else -LDLIBS += $(shell sdl2-config --libs) -lws2_32 -lpdcursesw -lintl -lshell32 -luuid +LDLIBS += $(shell sdl2-config --libs) -lws2_32 -lpdcursesw -lintl -lshell32 -luuid -lole32 LDLIBS:=$(filter-out -mwindows,$(LDLIBS)) endif CPPFLAGS += -Iinclude -Iconnectors/btstack/include -Iconnectors/btstack/src diff --git a/core/gimx.c b/core/gimx.c index 8f98955e..9823aa93 100755 --- a/core/gimx.c +++ b/core/gimx.c @@ -22,6 +22,7 @@ #include #include //to get the homedir #include +#include #endif #include "gimx.h" @@ -359,7 +360,7 @@ int main(int argc, char *argv[]) goto QUIT; } gimx_params.homedir = utf16le_to_utf8(path); - free(path); + CoTaskMemFree(path); #endif if (gprio() < 0)