Repository navigation
Unblock paths > MAX_PATH without extended syntax. - #3001
Conversation
146c01e to
4da74ba
Compare
There was a problem hiding this comment.
Let's rename it then. It's strange to have two overloads so similar and yet with so different behavior.
There was a problem hiding this comment.
Do you have any suggestions for naming? GetFullPathNameNoLongPath? This one in particular is used for the stack allocating code in PathHelper (all under MAX_PATH).
Like I mentioned, I intend to pass through these P/Invokes and normalize the naming. I want to drop the "W", use "Private" (anything better for that?), add comments on the privates to avoid leaking in other P/Invoke wrappers.
4da74ba to
50a3b1a
Compare
There was a problem hiding this comment.
Shouldn't this be !IsDirectorySeparator(path[1])? It is probably worth making sure we have test coverage that would have caught this.
There was a problem hiding this comment.
Yeah :/ I'll add the test for this one.
|
Other then the one issue and the renaming which you will be doing in a follow-up. The change looks good to me. |
Also allow directories up to max component length (255) as opening does not require extended syntax.
50a3b1a to
496c66e
Compare
Unblock paths > MAX_PATH without extended syntax.
Also allow directories up to max component length (255) as opening does not
require extended syntax.
@stephentoub, @weshaggard, @Priya91