BenjaminKim / dokanx

user-mode filesystem framework for Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mirrorfs.cpp DOKAN_OPTIONS malloc'ed, but dokanOperations pointer checked for result

gumanoid opened this issue · comments

PDOKAN_OPTIONS dokanOptions = (PDOKAN_OPTIONS)malloc(sizeof(DOKAN_OPTIONS));
if (dokanOperations == nullptr)

should be replaced with

PDOKAN_OPTIONS dokanOptions = (PDOKAN_OPTIONS)malloc(sizeof(DOKAN_OPTIONS));
if (dokanOptions == nullptr)

(this is probably copy-paste issue)