From 4a2812f0ed572843cbabcdaeec06176f55d4e0b2 Mon Sep 17 00:00:00 2001 From: Liryna Date: Sun, 23 Jan 2022 22:14:35 -0500 Subject: [PATCH] Library - Fix cast warning OpenRequestorToken --- dokan/access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dokan/access.c b/dokan/access.c index b8baa698..4d5ed654 100644 --- a/dokan/access.c +++ b/dokan/access.c @@ -31,7 +31,7 @@ HANDLE DOKANAPI DokanOpenRequestorToken(PDOKAN_FILE_INFO FileInfo) { ULONG eventInfoSize; WCHAR rawDeviceName[MAX_PATH]; - ioEvent = FileInfo->DokanContext; + ioEvent = (PDOKAN_IO_EVENT)(UINT_PTR)FileInfo->DokanContext; if (ioEvent->EventContext == NULL || ioEvent->DokanInstance == NULL) { SetLastError(ERROR_INVALID_PARAMETER); return INVALID_HANDLE_VALUE;