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: Mohamad Al-Jaf <mohamadaljaf@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Mohamad Al-Jaf 2022-02-22 18:35:41 -05:00 committed by Alexandre Julliard
parent 3033e09070
commit 20ab5e7d45
1 changed files with 3 additions and 3 deletions

View File

@ -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);