Skip to content
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

Merged
merged 16 commits into from
Jan 28, 2020
Merged

[CPL][APPWIZ] Use display name for shortcut label #2284

merged 16 commits into from
Jan 28, 2020

Conversation

katahiromz
Copy link
Contributor

Purpose

JIRA issue: CORE-16534

STEP 1: Right Click Desktop and Choose New ==> New Link.
Step1
STEP2: Type C:\ and Click Next.
Step2
STEP3: You will get display name.
Step3

@@ -176,6 +177,23 @@ BOOL IsInternetLocation(LPCWSTR pszLocation)
return (PathIsURLW(pszLocation) || wcsstr(pszLocation, L"www.") == pszLocation);
}

void
DoConvertNameForFileSystem(LPWSTR szName)
Copy link
Contributor

@HBelusca HBelusca Jan 28, 2020

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK.

Copy link
Contributor

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

Copy link
Contributor Author

@katahiromz katahiromz Jan 28, 2020

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dll/cpl/appwiz/createlink.c Outdated Show resolved Hide resolved
@katahiromz katahiromz merged commit 7249b8b into reactos:master Jan 28, 2020
@katahiromz katahiromz deleted the display-name branch January 28, 2020 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants