Merge pull request #1371 from Therzok/patch-1

Update FLT_FILE_NAME_INFORMATION usage to match docs
This commit is contained in:
DavidXanatos 2021-11-14 18:31:01 +01:00 committed by GitHub
commit 43d7cba0f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -414,8 +414,11 @@ _FX FLT_PREOP_CALLBACK_STATUS File_PreOperation(
Log_Msg_Process(MSG_1319, wcPid, (PWCHAR)pStr, proc->box->session_id, proc->pid);
Mem_Free(pStr, len);
}
FltReleaseFileNameInformation(pTargetFileNameInfo);
} // if (FltGetFileNameInformation)
if (pTargetFileNameInfo != NULL) {
FltReleaseFileNameInformation(pTargetFileNameInfo);
}
} // if (proc)
} // if (ulOwnerPid)
} // is this the print spooler process?