Commit 20ab5e7d authored by Mohamad Al-Jaf's avatar Mohamad Al-Jaf Committed by Alexandre Julliard

wusa: Use case insensitive comparison for expressions.

Some update packages use both lowercase and uppercase names for expressions. For example, Microsoft-Windows-MediaFeaturePack-OOB-Package_x64.msu uses both Runtime and runtime for expressions. Signed-off-by: 's avatarMohamad Al-Jaf <mohamadaljaf@gmail.com> Signed-off-by: 's avatarHans Leidekker <hans@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 3033e090
......@@ -480,10 +480,10 @@ static WCHAR *lookup_expression(struct assembly_entry *assembly, const WCHAR *ke
{
WCHAR path[MAX_PATH];
if (!wcscmp(key, L"runtime.system32"))
if (!wcsicmp(key, L"runtime.system32"))
{
#ifdef __x86_64__
if (!wcscmp(assembly->identity.architecture, L"x86"))
if (!wcsicmp(assembly->identity.architecture, L"x86"))
{
GetSystemWow64DirectoryW(path, ARRAY_SIZE(path));
return strdupW(path);
......@@ -492,7 +492,7 @@ static WCHAR *lookup_expression(struct assembly_entry *assembly, const WCHAR *ke
GetSystemDirectoryW(path, ARRAY_SIZE(path));
return strdupW(path);
}
if (!wcscmp(key, L"runtime.windows"))
if (!wcsicmp(key, L"runtime.windows"))
{
GetWindowsDirectoryW(path, ARRAY_SIZE(path));
return strdupW(path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment