Start10: Remove the need to CoInitialize() in PatchStartTileData()

This commit is contained in:
Amrsatrio
2024-04-25 23:32:37 +07:00
parent bae9fd612d
commit 097666676a
3 changed files with 11 additions and 5 deletions
+3 -1
View File
@@ -634,6 +634,7 @@ namespace ABI::WindowsInternal::Shell::UnifiedTile::CuratedTileCollections
};
}
#if 0
HRESULT StartTileData_Windows__Internal__ApplicationModel__StartPinnableSurface__GetUnifiedIdentifierForAumid(
void* _this,
const WCHAR* pszAumid,
@@ -898,6 +899,7 @@ HRESULT PatchStartPinnableSurface(HMODULE hModule, ABI::Windows::Internal::Appli
return S_OK;
}
#endif
namespace VerbGlyphs::SegoeMDL2Assets
{
@@ -1208,7 +1210,7 @@ extern "C" {
void PatchStartTileDataFurther(HMODULE hModule, BOOL bSMEH)
{
// ComPtr<ABI::Windows::Internal::ApplicationModel::IPinnableSurfaceFactory> pPinnableSurfaceFactory;
PatchStartPinnableSurface(hModule, nullptr /*&pPinnableSurfaceFactory*/); // We might not need to patch this but just in case
// PatchStartPinnableSurface(hModule, nullptr /*&pPinnableSurfaceFactory*/);
// if (bSMEH)
// pPinnableSurfaceFactory->AddRef(); // Pin in memory so that StartTileData.dll doesn't get unloaded