mirror of
https://github.com/modernw/App-Installer-For-Windows-8.x-Reset.git
synced 2026-04-11 17:57:19 +10:00
Update Shell
Fix Package Store Logo Read
This commit is contained in:
@@ -611,6 +611,23 @@ class package_reader
|
||||
lpstr = nullptr;
|
||||
});
|
||||
lpstr = StreamToBase64W (pic, nullptr, 0, nullptr);
|
||||
if (!(lpstr && *lpstr))
|
||||
{
|
||||
if (lpstr) free (lpstr);
|
||||
HANDLE pkg1 = nullptr, pic1 = nullptr;
|
||||
destruct relp1 ([&pic1, &pkg1] () {
|
||||
if (pic1) DestroyAppxFileStream (pic1);
|
||||
if (pkg1) DestroyAppxFileStream (pkg1);
|
||||
pkg1 = nullptr;
|
||||
pic1 = nullptr;
|
||||
});
|
||||
pkg1 = GetAppxBundleApplicationPackageFile (hReader);
|
||||
if (pkg1)
|
||||
{
|
||||
pic1 = GetFileFromPayloadPackage (pkg1, logo ().c_str ());
|
||||
lpstr = StreamToBase64W (pic1, nullptr, 0, nullptr);
|
||||
}
|
||||
}
|
||||
return lpstr ? lpstr : L"";
|
||||
} break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user