Start10: Revert 45bd735 to pin down antivirus detections

This commit is contained in:
Amrsatrio
2024-04-25 20:50:03 +07:00
parent 232fe6b148
commit e59c34c06e
2 changed files with 15 additions and 6 deletions
+4 -4
View File
@@ -1207,11 +1207,11 @@ extern "C" {
void PatchStartTileDataFurther(HMODULE hModule, BOOL bSMEH)
{
ComPtr<ABI::Windows::Internal::ApplicationModel::IPinnableSurfaceFactory> pPinnableSurfaceFactory;
PatchStartPinnableSurface(hModule, &pPinnableSurfaceFactory);
// ComPtr<ABI::Windows::Internal::ApplicationModel::IPinnableSurfaceFactory> pPinnableSurfaceFactory;
PatchStartPinnableSurface(hModule, nullptr /*&pPinnableSurfaceFactory*/); // We might not need to patch this but just in case
if (bSMEH)
pPinnableSurfaceFactory->AddRef(); // Pin in memory so that StartTileData.dll doesn't get unloaded
// if (bSMEH)
// pPinnableSurfaceFactory->AddRef(); // Pin in memory so that StartTileData.dll doesn't get unloaded
PatchUnifiedTilePinUnpinProvider(hModule);
}