Skip to content

Fix initial directory and custom places in file dialogs - #4111

Merged
RussKie merged 1 commit into
dotnet:release/5.0from
RussKie:fix_3513
Oct 15, 2020
Merged

RussKie merged 1 commit into
dotnet:release/5.0from
RussKie:fix_3513

Conversation

@RussKie

@RussKie RussKie commented Oct 15, 2020 •

Copy link
Copy Markdown
Contributor

FileDialog.InitialDirectory and FileDialog.CustomPlaces do not work as paths we're incorrectly marshalled as ANSI.

Wrote an interop regression test and manually validated the two scenarios.

Fixes #3513
(cherry picked from commit 197420f)

Proposed changes

  • Add the appropriate charset marshalling directive

Customer Impact

  • InitialDirectory and CustomPlaces do not work for FileDialog
  • No customer workaround

Regression?

  • Yes

Risk

  • Very low

Test methodology

  • Wrote regression interop test
  • Manually tested the file dialog
Microsoft Reviewers: Open in CodeFlow

`FileDialog.InitialDirectory` and `FileDialog.CustomPlaces` do not work as paths we're incorrectly marshalled as ANSI.

Wrote an interop regression test and manually validated the two scenarios.

(cherry picked from commit 197420f)
@RussKie RussKie added the servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria label Oct 15, 2020
@RussKie
RussKie requested a review from a team as a code owner October 15, 2020 01:48
@ghost ghost assigned RussKie Oct 15, 2020
@RussKie RussKie added this to the 5.0 GA milestone Oct 15, 2020
@codecov

codecov Bot commented Oct 15, 2020

Copy link
Copy Markdown

Codecov Report

Merging #4111 into release/5.0 will decrease coverage by 30.96651%.
The diff coverage is n/a.

@@                  Coverage Diff                   @@
##           release/5.0       #4111          +/-   ##
======================================================
- Coverage     68.03971%   37.07320%   -30.96651%     
======================================================
  Files             1416         924         -492     
  Lines           509598      250998      -258600     
  Branches         41459       36991        -4468     
======================================================
- Hits            346729       93053      -253676     
+ Misses          156650      152483        -4167     
+ Partials          6219        5462         -757     
Flag Coverage Δ
#Debug 37.07320% <ø> (-30.96651%) ⬇️
#production 37.07320% <ø> (-0.00161%) ⬇️
#test ?

Flags with carried forward coverage won't be shown. Click here to find out more.

@RussKie RussKie added api-approved (4) API was approved in API review, it can be implemented servicing-approved .NET Shiproom approved the PR for merge and removed servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria api-approved (4) API was approved in API review, it can be implemented labels Oct 15, 2020
@RussKie

RussKie commented Oct 15, 2020

Copy link
Copy Markdown
Contributor Author

Approved via email

@RussKie
RussKie merged commit 8794266 into dotnet:release/5.0 Oct 15, 2020
@RussKie
RussKie deleted the fix_3513 branch October 15, 2020 05:12
@ghost ghost locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

servicing-approved .NET Shiproom approved the PR for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant