diff options
| -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())); } // |
