Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanner.h scanned file is still in use pr #30 #31

Closed
stealth62 opened this issue Feb 19, 2023 · 1 comment · Fixed by #33
Closed

Scanner.h scanned file is still in use pr #30 #31

stealth62 opened this issue Feb 19, 2023 · 1 comment · Fixed by #33

Comments

@stealth62
Copy link

Hello!
I notice that after scanning the file, the file is still in use and the handle is not closed properly.
Scanner.h > line 76 "auto fd = CreateFile(nativePath.c_str(),"

@stealth62 stealth62 changed the title Scanner.h file is still in use Scanner.h scanned file is still in use pr #30 Feb 19, 2023
@stealth62
Copy link
Author

I tried the CloseHandle(fd); before line 100 return results;, It closed the handle. It is safe or there's a safe approach? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant