-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[CPL][APPWIZ] Use display name for shortcut label #2284
Conversation
@@ -176,6 +177,23 @@ BOOL IsInternetLocation(LPCWSTR pszLocation) | |||
return (PathIsURLW(pszLocation) || wcsstr(pszLocation, L"www.") == pszLocation); | |||
} | |||
|
|||
void | |||
DoConvertNameForFileSystem(LPWSTR szName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the point of this function?
EDIT: OK Maybe I understand: is it just removing all invalid characters from the name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it would be better to use the more complete PathCleanupSpec()
function (that only takes UNICODE characters by the way), we have it implemented, and is documented:
https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-pathcleanupspec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I can't agree. Windows actually deletes a colon of a drive label in this situation. Our PathCleanupSpec
didn't implement PCS_REMOVEDCHAR
yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Purpose
JIRA issue: CORE-16534
STEP 1: Right Click Desktop and Choose
![Step1](https://user-images.githubusercontent.com/2107452/73262159-e826fa80-4210-11ea-80fc-80f212f0a49a.png)
![Step2](https://user-images.githubusercontent.com/2107452/73262160-e826fa80-4210-11ea-82e0-983b0bec17b2.png)
![Step3](https://user-images.githubusercontent.com/2107452/73262158-e78e6400-4210-11ea-9d74-2cc59463af4e.png)
New ==> New Link
.STEP2: Type
C:\
and ClickNext
.STEP3: You will get display name.