You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NativeMethods.GetFullPathName("C:\\myfolder\\Con. approval.pdf", (uint)buffer.Capacity, buffer, IntPtr.Zero) ==> buffer is set to \\.\Con - which is not correct
It's not because of the whitespace, it's because of the "con". "con" is a reserved filename (for the Console device), and a filename cannot include it as a whole word (of course something like "context" or "defcon" is fine). If you try to create a file named "Con. approval.pdf" or "con.pdf", it will fail.
There is a bug in Pri.LongPath.Path.GetDirectoryName when the filename contains '. ' (dot and then whitespace).
Seems to be a win32 bug:
I have reported this here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa364963(v=vs.85).aspx
The text was updated successfully, but these errors were encountered: