From 02dc14f26a527f5b45f48cf5cdbc745afa83263c Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Mon, 27 Apr 2020 15:38:09 +0300 Subject: [PATCH] Fix maxminddb call to CreateFile. --- module/Vendor/MaxmindDB/src/maxminddb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Vendor/MaxmindDB/src/maxminddb.c b/module/Vendor/MaxmindDB/src/maxminddb.c index e7c9d3b9..21c18f2b 100644 --- a/module/Vendor/MaxmindDB/src/maxminddb.c +++ b/module/Vendor/MaxmindDB/src/maxminddb.c @@ -343,7 +343,7 @@ LOCAL int map_file(MMDB_s *const mmdb) status = MMDB_FILE_OPEN_ERROR; goto cleanup; } - fd = CreateFile(utf16_filename, GENERIC_READ, FILE_SHARE_READ, NULL, + fd = CreateFileW(utf16_filename, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (fd == INVALID_HANDLE_VALUE) { status = MMDB_FILE_OPEN_ERROR;