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

#970 Support setting an initial directory in getDirectoryPath() on Windows #1381

Merged
merged 4 commits into from
Mar 20, 2024
Merged

#970 Support setting an initial directory in getDirectoryPath() on Windows #1381

merged 4 commits into from
Mar 20, 2024

Conversation

andreaszapf
Copy link
Contributor

Hi, thanks for developing and maintaining this plugin!

Here is a fix for issue #970 (getDirectoryPath() would ignore its initialDirectory parameter on Windows). I hope you'll find it helpful.

Copy link
Owner

@miguelpruivo miguelpruivo left a comment

Choose a reason for hiding this comment

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

Please rebased and update the versions.

To make this work some surprising Pointer casts are needed, but I verified that
the created IShellItem object works (e.g., by calling getDisplayName()) and can
be released without crashing.
@andreaszapf andreaszapf requested a review from miguelpruivo March 5, 2024 05:04
@miguelpruivo miguelpruivo merged commit f23fdb5 into miguelpruivo:master Mar 20, 2024
0 of 3 checks passed
@miguelpruivo
Copy link
Owner

Thanks.

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.

2 participants