mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
Rebase against cce8074aa9fb2191faba25ce7fd24e2678d3bd17
This commit is contained in:
parent
ed630b8146
commit
be5814e428
@ -52,7 +52,7 @@ usage()
|
||||
# Get the upstream commit sha
|
||||
upstream_commit()
|
||||
{
|
||||
echo "48f93bc3290596b8da4455496fa88cd13ea6f3c9"
|
||||
echo "cce8074aa9fb2191faba25ce7fd24e2678d3bd17"
|
||||
}
|
||||
|
||||
# Show version information
|
||||
@ -5770,7 +5770,7 @@ fi
|
||||
# Patchset shlwapi-UrlCombine
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/shlwapi/tests/url.c, dlls/shlwapi/url.c
|
||||
# | * dlls/shlwapi/tests/url.c
|
||||
# |
|
||||
if test "$enable_shlwapi_UrlCombine" -eq 1; then
|
||||
patch_apply shlwapi-UrlCombine/0001-shlwapi-tests-Add-additional-tests-for-UrlCombine-and-.patch
|
||||
|
@ -165,7 +165,7 @@ index 62c101d..a5cb4b1 100644
|
||||
+ {
|
||||
+ if (!StrCmpIW(Ext, pszExt))
|
||||
+ return &known_types[n];
|
||||
+ Ext += (strlenW(Ext) + 1);
|
||||
+ Ext += (lstrlenW(Ext) + 1);
|
||||
+ }
|
||||
+ }
|
||||
+ return NULL;
|
||||
@ -229,7 +229,7 @@ index 62c101d..a5cb4b1 100644
|
||||
+ if (!Info)
|
||||
+ {
|
||||
+ WCHAR KeyName[MAX_PATH] = { 0 };
|
||||
+ snprintfW(KeyName, MAX_PATH, SystemFileAssociationsKey, lpszExt);
|
||||
+ swprintf(KeyName, MAX_PATH, SystemFileAssociationsKey, lpszExt);
|
||||
+ Size = sizeof(Buffer);
|
||||
+ if (RegGetValueW(HKEY_CLASSES_ROOT, KeyName, PerceivedTypeKey,
|
||||
+ RRF_RT_REG_SZ, NULL, Buffer, &Size) == ERROR_SUCCESS)
|
||||
|
@ -23,20 +23,20 @@ index ecbdfab..8a99f7e 100644
|
||||
{"http://www.winehq.org/tests19/test", "./", 0, S_OK, "http://www.winehq.org/tests19/", FALSE},
|
||||
{"http://www.winehq.org/tests20/test", "/", 0, S_OK, "http://www.winehq.org/", FALSE},
|
||||
{"http://www.winehq.org/tests/test", "./test21", 0, S_OK, "http://www.winehq.org/tests/test21", FALSE},
|
||||
diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c
|
||||
index 11589e4..58eb87c 100644
|
||||
--- a/dlls/shlwapi/url.c
|
||||
+++ b/dlls/shlwapi/url.c
|
||||
@@ -914,7 +914,10 @@ HRESULT WINAPI UrlCombineW(LPCWSTR pszBase, LPCWSTR pszRelative,
|
||||
work = preliminary + base.cchProtocol+1+base.cchSuffix - 1;
|
||||
diff --git a/dlls/kernelbase/path.c b/dlls/kernelbase/path.c
|
||||
index 82708be5444..8d2739b40e8 100644
|
||||
--- a/dlls/kernelbase/path.c
|
||||
+++ b/dlls/kernelbase/path.c
|
||||
@@ -4990,7 +4990,10 @@ HRESULT WINAPI UrlCombineW(const WCHAR *baseW, const WCHAR *relativeW, WCHAR *co
|
||||
work = preliminary + base.cchProtocol + 1 + base.cchSuffix - 1;
|
||||
if (*work++ != '/')
|
||||
*(work++) = '/';
|
||||
- strcpyW(work, relative.pszSuffix);
|
||||
- lstrcpyW(work, relative.pszSuffix);
|
||||
+ if (relative.pszSuffix[0] == '.' && relative.pszSuffix[1] == 0)
|
||||
+ *work = 0;
|
||||
+ else
|
||||
+ strcpyW(work, relative.pszSuffix);
|
||||
break;
|
||||
+ lstrcpyW(work, relative.pszSuffix);
|
||||
break;
|
||||
|
||||
default:
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user