https://git.reactos.org/?p=reactos.git;a=commitdiff;h=98d8ddaaa03fbb1227d1a…
commit 98d8ddaaa03fbb1227d1aea92a244bbfacd38b62
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Mar 13 19:08:14 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:28:27 2022 +0100
[WINESYNC] msi: Change unknown platform enum entry name.
Public shlwapi.h defines same name, it seems safer to rename internal type.
Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com>
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 5aeb9ed82efd4a02d24eac4ffdb64e7badb5f8bd by Nikolay Sivov
<nsivov(a)codeweavers.com>
---
dll/win32/msi/msipriv.h | 2 +-
dll/win32/msi/package.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dll/win32/msi/msipriv.h b/dll/win32/msi/msipriv.h
index 82e2977f0d2..2832461528e 100644
--- a/dll/win32/msi/msipriv.h
+++ b/dll/win32/msi/msipriv.h
@@ -363,7 +363,7 @@ typedef struct msi_dialog_tag msi_dialog;
enum platform
{
- PLATFORM_UNKNOWN,
+ PLATFORM_UNRECOGNIZED,
PLATFORM_INTEL,
PLATFORM_INTEL64,
PLATFORM_X64,
diff --git a/dll/win32/msi/package.c b/dll/win32/msi/package.c
index f54352f4f23..4390a709ece 100644
--- a/dll/win32/msi/package.c
+++ b/dll/win32/msi/package.c
@@ -1209,7 +1209,7 @@ static enum platform parse_platform( const WCHAR *str )
else if (!wcscmp( str, szX64 ) || !wcscmp( str, szAMD64 )) return PLATFORM_X64;
else if (!wcscmp( str, szARM )) return PLATFORM_ARM;
else if (!wcscmp( str, szARM64 )) return PLATFORM_ARM64;
- return PLATFORM_UNKNOWN;
+ return PLATFORM_UNRECOGNIZED;
}
static UINT parse_suminfo( MSISUMMARYINFO *si, MSIPACKAGE *package )
@@ -1237,13 +1237,13 @@ static UINT parse_suminfo( MSISUMMARYINFO *si, MSIPACKAGE *package
)
platform = template;
if ((q = wcschr( platform, ',' ))) *q = 0;
package->platform = parse_platform( platform );
- while (package->platform == PLATFORM_UNKNOWN && q)
+ while (package->platform == PLATFORM_UNRECOGNIZED && q)
{
platform = q + 1;
if ((q = wcschr( platform, ',' ))) *q = 0;
package->platform = parse_platform( platform );
}
- if (package->platform == PLATFORM_UNKNOWN)
+ if (package->platform == PLATFORM_UNRECOGNIZED)
{
WARN("unknown platform %s\n", debugstr_w(template));
msi_free( template );