mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[PTRun]Fix Hash Collision in Image Cache (#31503)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user