-
Notifications
You must be signed in to change notification settings - Fork 665
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
Future changes (TODO) #45
Comments
Hi @marinkobabic,
This happened since in mirror I return the error from getLastError.
By removing the free like you, I was surprised to have no crash. It seems that dokanx have chosen to fix it in a different way... By the way, the comment say that Close is never called...but I get a Cleanup and close after GetFileInfo. Do you have a reason for removing this lines ? Are they important ? Otherwise mirror is correctly running without problem. I will run dokan-net.Test before merging it. |
@Liryna The fact is, that even in this case the cleanup is executed. Therefore the pOpenInfo should not be freed during create. Cleanup requires the pOpenInfo. Here you have the mapping table Win32 to NTSTATUS https://support.microsoft.com/en-us/kb/113996 GetLastError code should not be passed directly to the driver. GetLastError is the Win32 error and not NTSTATUS. |
Thank you for the clear answer 👍 Do you think we should let the user return Win32 error and we convert it in NTSTATUS (dokan.dll)? |
No. Then you will have always a discussion of mapping. Which win32 errors do you map to which code. Please add this code as well and so on... |
Ok ! I agree 😃 |
@marinkobabic, I finished the NTSTATUS changes. I tested it with the mirror and it seems to work good / without crash. I would like your review before merging it 😃 and know if it fit your request ! (and If you have the time ofc) |
@Liryna
|
Thank @marinkobabic for your feedback and informations ! I will merge it in master when I finish to change dokan-net with NtStatus. |
The todo has been split to different tickets. |
For fixing some issue and becoming more stable, Dokan need
The text was updated successfully, but these errors were encountered: