Fixed a couple of stupid mistakes
diff --git a/lib/zip_source_win32utf8.c b/lib/zip_source_win32utf8.c
index 2b82852..299a42c 100644
--- a/lib/zip_source_win32utf8.c
+++ b/lib/zip_source_win32utf8.c
@@ -62,7 +62,7 @@
     }
 
     /* Convert fname from UTF-8 to Windows-friendly UTF-16. */
-    size = MultiByteToWideChar(CP_UTF8, WC_ERR_INVALID_CHARS, fname, -1, NULL, 0);
+    size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, fname, -1, NULL, 0);
     if (size == 0) {
 	zip_error_set(error, ZIP_ER_INVAL, 0);
 	return NULL;
@@ -71,7 +71,7 @@
 	zip_error_set(error, ZIP_ER_MEMORY, 0);
 	return NULL;
     }
-    MultiByteToWideChar(CP_UTF8, WC_ERR_INVALID_CHARS, fname, -1, wfname, size);
+    MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, fname, -1, wfname, size);
 
     source = zip_source_win32w_create(wfname, start, length, error);
 
diff --git a/lib/zip_source_win32w.c b/lib/zip_source_win32w.c
index e35f293..326e69c 100644
--- a/lib/zip_source_win32w.c
+++ b/lib/zip_source_win32w.c
@@ -98,7 +98,7 @@
 
     len = wcslen((const wchar_t *)ctx->fname) + 10;
     if (*temp == NULL) {
-	if ((*temp = (char *)malloc(sizeof(char) * len)) == NULL) {
+	if ((*temp = (char *)malloc(sizeof(wchar_t) * len)) == NULL) {
 	    zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0);
 	    return INVALID_HANDLE_VALUE;
 	}