summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-06-02 00:02:01 +0200
committerGitHub <noreply@github.com>2020-06-02 00:02:01 +0200
commitd7a6bb21713829e49c1ecdeda6005dbe26dae864 (patch)
tree29dae6ee2405a39118a8bedde750a563a9db7a90
parentf828451e5f9b4fe63545485dcb97f7e3e4a425b2 (diff)
parent66b02a8044396167f0e2873d347a39210589b8a8 (diff)
downloaduxp-d7a6bb21713829e49c1ecdeda6005dbe26dae864.tar.gz
Merge pull request #1574 from adeshkp/patch-19
Lowercase link filename extension on Windows
-rw-r--r--widget/windows/nsDataObj.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/widget/windows/nsDataObj.cpp b/widget/windows/nsDataObj.cpp
index a19dcb1820..80abf35218 100644
--- a/widget/windows/nsDataObj.cpp
+++ b/widget/windows/nsDataObj.cpp
@@ -1168,14 +1168,14 @@ nsDataObj :: GetFileDescriptorInternetShortcutA ( FORMATETC& aFE, STGMEDIUM& aST
}
// get a valid filename in the following order: 1) from the page title,
- // 2) localized string for an untitled page, 3) just use "Untitled.URL"
- if (!CreateFilenameFromTextA(title, ".URL",
+ // 2) localized string for an untitled page, 3) just use "Untitled.url"
+ if (!CreateFilenameFromTextA(title, ".url",
fileGroupDescA->fgd[0].cFileName, NS_MAX_FILEDESCRIPTOR)) {
nsXPIDLString untitled;
if (!GetLocalizedString(u"noPageTitle", untitled) ||
- !CreateFilenameFromTextA(untitled, ".URL",
+ !CreateFilenameFromTextA(untitled, ".url",
fileGroupDescA->fgd[0].cFileName, NS_MAX_FILEDESCRIPTOR)) {
- strcpy(fileGroupDescA->fgd[0].cFileName, "Untitled.URL");
+ strcpy(fileGroupDescA->fgd[0].cFileName, "Untitled.url");
}
}
@@ -1209,14 +1209,14 @@ nsDataObj :: GetFileDescriptorInternetShortcutW ( FORMATETC& aFE, STGMEDIUM& aST
}
// get a valid filename in the following order: 1) from the page title,
- // 2) localized string for an untitled page, 3) just use "Untitled.URL"
- if (!CreateFilenameFromTextW(title, L".URL",
+ // 2) localized string for an untitled page, 3) just use "Untitled.url"
+ if (!CreateFilenameFromTextW(title, L".url",
fileGroupDescW->fgd[0].cFileName, NS_MAX_FILEDESCRIPTOR)) {
nsXPIDLString untitled;
if (!GetLocalizedString(u"noPageTitle", untitled) ||
- !CreateFilenameFromTextW(untitled, L".URL",
+ !CreateFilenameFromTextW(untitled, L".url",
fileGroupDescW->fgd[0].cFileName, NS_MAX_FILEDESCRIPTOR)) {
- wcscpy(fileGroupDescW->fgd[0].cFileName, L"Untitled.URL");
+ wcscpy(fileGroupDescW->fgd[0].cFileName, L"Untitled.url");
}
}