Skip to content

Commit

Permalink
added docs to scanner.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomiwa-Ot committed Oct 11, 2022
1 parent 0a884e6 commit 5eeeac3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ int scanBytes(LPCTSTR path, LPCWSTR name, int debug)
initialize(debug);
openSession(debug);

// Read bytes from file and the bytes size
HANDLE hFile = CreateFileA(path, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
DWORD dwFileSize = GetFileSize(hFile, NULL);
BYTE* buffer = (BYTE*) VirtualAlloc(NULL, dwFileSize, MEM_COMMIT, PAGE_READWRITE);
Expand Down

0 comments on commit 5eeeac3

Please sign in to comment.