summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-26 21:34:43 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-26 21:34:43 +0300
commit46e00e558a8a1633bbc85ccb70ec882982672927 (patch)
tree0bd710a795411468cf642ddaed87474f46e357da /plugins/Dbx_mdbx
parent9285557d9f8a2ee7b06d483aed1735c9888f8aff (diff)
another buggy piece of code removed
Diffstat (limited to 'plugins/Dbx_mdbx')
-rw-r--r--plugins/Dbx_mdbx/src/libmdbx/src/osal.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/plugins/Dbx_mdbx/src/libmdbx/src/osal.c b/plugins/Dbx_mdbx/src/libmdbx/src/osal.c
index 67cadd5056..bcb9a767f1 100644
--- a/plugins/Dbx_mdbx/src/libmdbx/src/osal.c
+++ b/plugins/Dbx_mdbx/src/libmdbx/src/osal.c
@@ -782,17 +782,6 @@ int mdbx_mmap(int flags, mdbx_mmap_t *map, size_t size, size_t limit) {
if (GetFileType(map->fd) != FILE_TYPE_DISK)
return ERROR_FILE_OFFLINE;
- pfnGetFileInformationByHandleEx pfunc = (pfnGetFileInformationByHandleEx)GetProcAddress(GetModuleHandleA("kernel32.dll"), "GetFileInformationByHandleEx");
- if (pfunc) {
- FILE_REMOTE_PROTOCOL_INFO RemoteProtocolInfo;
- if (pfunc(map->fd, FileRemoteProtocolInfo,
- &RemoteProtocolInfo,
- sizeof(RemoteProtocolInfo))) {
- if ((RemoteProtocolInfo.Flags & (REMOTE_PROTOCOL_INFO_FLAG_LOOPBACK | REMOTE_PROTOCOL_INFO_FLAG_OFFLINE)) != REMOTE_PROTOCOL_INFO_FLAG_LOOPBACK)
- return ERROR_FILE_OFFLINE;
- }
- }
-
#if defined(_WIN64) && defined(WOF_CURRENT_VERSION)
struct {
WOF_EXTERNAL_INFO wof_info;