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 @@
+