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

Fix silently failing on Windows #33

Merged
3 commits merged into from Apr 30, 2019
Merged

Fix silently failing on Windows #33

3 commits merged into from Apr 30, 2019

Conversation

sharkykh
Copy link
Contributor

@sharkykh sharkykh commented Apr 29, 2019

Fixes #31
GetShortPathNameW returned a buffer of 0 if the file could not be found, causing the return value of get_short_path_name to be an empty string, which caused the silent failure.

Also added a test for the normal function of send2trash.plat_win.

Copy link
Contributor

@BoboTiG BoboTiG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ghost
Copy link

ghost commented Apr 30, 2019

I'm blindly merging this as I have no way to verify that it works. But with the tests and all, it looks good.

@sharkykh
Copy link
Contributor Author

@hsoft
Thank you.
I personally also tested this locally before pushing the PR :)

@ghost ghost merged commit 66afce7 into arsenetar:master Apr 30, 2019
@sharkykh sharkykh deleted the fix/windows branch April 30, 2019 16:28
@ghost
Copy link

ghost commented Apr 30, 2019

BTW, thanks for the PR. Thanks @BoboTiG also for your second opinion. It helps mitigate the risks of blind merging.

This pull request was closed.
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 this pull request may close these issues.

send2trash 1.50 is failing silently in windows
2 participants