[PTRun]Fix Hash Collision in Image Cache (#31503)

This commit is contained in:
gokcekantarci
2024-03-14 18:05:43 +03:00
committed by GitHub
parent 44f3abb6a9
commit 16257d80f6
3 changed files with 26 additions and 8 deletions

View File

@@ -266,7 +266,7 @@ namespace Wox.Infrastructure.Image
if (imageResult.ImageType != ImageType.Error && imageResult.ImageType != ImageType.Cache)
{
// we need to get image hash
string hash = _enableImageHash ? _hashGenerator.GetHashFromImage(img) : null;
string hash = _enableImageHash ? _hashGenerator.GetHashFromImage(img, path) : null;
if (hash != null)
{