fix win8 exception

This commit is contained in:
henrypp committed 2022-08-10 18:45:16 +06:00
1 parent 6f7db96c36
commit 5616544a77
1 file changed
+6 -3
+6 -3
View File
@@ -31,10 +31,13 @@ BOOLEAN _app_package_getpackage_info (
if (!package)
return FALSE;
status = package.Status ();
if (_r_sys_isosversiongreaterorequal (WINDOWS_10_1507))
{
status = package.Status ();
if (status.Disabled () || status.NotAvailable ())
return FALSE;
if (status.Disabled () || status.NotAvailable ())
return FALSE;
}
display_name = package.DisplayName ();
path = package.InstalledLocation ().Path ();