Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix up buffer management getting network roots#24600

Merged
iSazonov merged 4 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
jborean93:wnet-bufferjborean93/PowerShell:wnet-bufferCopy head branch name to clipboard
Nov 26, 2024
Merged

Fix up buffer management getting network roots#24600
iSazonov merged 4 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
jborean93:wnet-bufferjborean93/PowerShell:wnet-bufferCopy head branch name to clipboard

Conversation

@jborean93

Copy link
Copy Markdown
Collaborator

PR Summary

Fixes the logic used when getting the PSDrive DisplayRoot for network PSDrive paths to exclude null terminators.

PR Context

2nd attempt at fixes: #21064. Original was #21068.

PR Checklist

Fixes the logic used when getting the PSDrive DisplayRoot for network
PSDrive paths to exclude null terminators.
Comment thread src/System.Management.Automation/engine/Interop/Windows/WNetGetConnection.cs Outdated

@iSazonov iSazonov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM with one minor comment.

Comment thread test/powershell/Modules/Microsoft.PowerShell.Management/Get-PSDrive.Tests.ps1 Outdated
…Drive.Tests.ps1

Co-authored-by: Ilya <darpa@yandex.ru>
@iSazonov iSazonov added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Nov 18, 2024
@iSazonov iSazonov requested a review from SteveL-MSFT November 18, 2024 06:49
@microsoft-github-policy-service microsoft-github-policy-service Bot added the Review - Needed The PR is being reviewed label Nov 25, 2024

@iSazonov iSazonov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@jborean93 Please address two comments - we are near to merge.

Comment thread src/System.Management.Automation/engine/Interop/Windows/WNetGetConnection.cs Outdated
Comment thread src/System.Management.Automation/engine/Interop/Windows/WNetGetConnection.cs Outdated
@microsoft-github-policy-service microsoft-github-policy-service Bot added Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept and removed Review - Needed The PR is being reviewed labels Nov 26, 2024
Co-authored-by: Ilya <darpa@yandex.ru>
@iSazonov iSazonov closed this Nov 26, 2024
@iSazonov iSazonov reopened this Nov 26, 2024
@iSazonov iSazonov self-assigned this Nov 26, 2024
@iSazonov iSazonov removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 26, 2024
@iSazonov iSazonov merged commit 22beba4 into PowerShell:master Nov 26, 2024
@jborean93 jborean93 deleted the wnet-buffer branch November 26, 2024 07:54
@jborean93

Copy link
Copy Markdown
Collaborator Author

Thanks for the review and merge @iSazonov. Any chance to mark this as a backport candidate?

@TravisEz13

Copy link
Copy Markdown
Member

@PowerShell/powershell-maintainers We need more time in the preview release stage before considering this change for back-port.

pwshBot pushed a commit to pwshBot/PowerShell that referenced this pull request Apr 10, 2025
Fixes the logic used when getting the PSDrive DisplayRoot for network PSDrive paths to exclude null terminators.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.5.x-Done CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get-PSDrive returns incorrect DisplayRoot property for mounted drive letters in 7.4.1

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.