summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Allred <[email protected]>2024-01-25 12:12:03 -0800
committerGitHub <[email protected]>2024-01-25 12:12:03 -0800
commit3d32dffd7ac81ee1f02662dbfdef128cff96864c (patch)
tree68820613d303f3b79f3d7fbdefaab287d00eb7b7
parentae267d0928bc42ec90dc7e5bf03267f237c12585 (diff)
parent10d84c5ee0fd313f2021180f901b7d3c5f951ad7 (diff)
Merge pull request #932 from hsebs/patch-2
Fix error logging
-rw-r--r--filesys/miniFilter/avscan/user/userscan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/filesys/miniFilter/avscan/user/userscan.c b/filesys/miniFilter/avscan/user/userscan.c
index 71527823..5808c2ce 100644
--- a/filesys/miniFilter/avscan/user/userscan.c
+++ b/filesys/miniFilter/avscan/user/userscan.c
@@ -759,7 +759,6 @@ Return Value:
HRESULT hr = S_OK;
ULONG bytesReturned = 0;
HANDLE sectionHandle = NULL;
- DWORD dwErrCode = 0;
PVOID scanAddress = NULL;
MEMORY_BASIC_INFORMATION memoryInfo;
PAV_SCANNER_NOTIFICATION notification = &Message->Notification;
@@ -847,7 +846,7 @@ Cleanup:
if (!CloseHandle(sectionHandle)) {
fprintf(stderr, "[UserScanHandleStartScanMsg]: Failed to close the section handle.\n");
- DisplayError(HRESULT_FROM_WIN32(dwErrCode));
+ DisplayError(HRESULT_FROM_WIN32(GetLastError()));
}
//