Skip to content

Commit

Permalink
Library - Fix cast warning OpenRequestorToken
Browse files Browse the repository at this point in the history
  • Loading branch information
Liryna committed Jan 24, 2022
1 parent 10c4acb commit 4a2812f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dokan/access.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4a2812f

Please sign in to comment.