mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-04-21 03:27:22 +02:00
Fix maxminddb call to CreateFile.
This commit is contained in:
+1
-1
@@ -343,7 +343,7 @@ LOCAL int map_file(MMDB_s *const mmdb)
|
|||||||
status = MMDB_FILE_OPEN_ERROR;
|
status = MMDB_FILE_OPEN_ERROR;
|
||||||
goto cleanup;
|
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);
|
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||||
if (fd == INVALID_HANDLE_VALUE) {
|
if (fd == INVALID_HANDLE_VALUE) {
|
||||||
status = MMDB_FILE_OPEN_ERROR;
|
status = MMDB_FILE_OPEN_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user