From dc2e0b35a61664198b19d1f7d5a1a9ddab507a79 Mon Sep 17 00:00:00 2001 From: Harald Oehlmann Date: Mon, 7 Jan 2019 11:03:37 +0100 Subject: [PATCH] 2018-01-07 HaO Make compile with MS-VC2017 [Ticket 135] --- backend/emf.c | 2 +- win32/libzint.vcxproj | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/emf.c b/backend/emf.c index 2f0bd724..606b9c95 100644 --- a/backend/emf.c +++ b/backend/emf.c @@ -397,7 +397,7 @@ int emf_plot(struct zint_symbol *symbol) { str = symbol->vector->strings; this_text = 0; while (str) { - this_string[this_text] = malloc(bump_up(str->length + 1) * 2); + this_string[this_text] = (unsigned char *) malloc(bump_up(str->length + 1) * 2); text[this_text].type = 0x00000054; // EMR_EXTTEXTOUTW text[this_text].size = 76 + (6 * bump_up(str->length + 1)); text[this_text].bounds.top = 0; // ignored diff --git a/win32/libzint.vcxproj b/win32/libzint.vcxproj index c3436c36..512f13c2 100644 --- a/win32/libzint.vcxproj +++ b/win32/libzint.vcxproj @@ -326,6 +326,7 @@ + @@ -343,6 +344,7 @@ +