diff options
| author | Heesung Kim <[email protected]> | 2023-03-14 23:44:24 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-14 23:44:24 +0900 |
| commit | 10d84c5ee0fd313f2021180f901b7d3c5f951ad7 (patch) | |
| tree | d60c02736841258db9b308b6a72e68b69cc88a32 | |
| parent | 8ef4a1cacff8c9967d870f9bfdfa8b3f21754a7f (diff) | |
Fix error logging
`dwErrCode` which is always 0.
| -rw-r--r-- | filesys/miniFilter/avscan/user/userscan.c | 3 |
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())); } // |
