mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
MSIX: Fix for Heap Corruption bug in ImageResizer (#1655)
This commit is contained in:
parent
72a0341a0e
commit
82596b9c3f
@ -376,7 +376,7 @@ HRESULT __stdcall CContextMenuHandler::GetState(IShellItemArray* psiItemArray, B
|
||||
// TODO: Instead, detect whether there's a WIC codec installed that can handle this file
|
||||
AssocGetPerceivedType(pszExt, &type, &flag, NULL);
|
||||
|
||||
free(pszPath);
|
||||
CoTaskMemFree(pszPath);
|
||||
// If selected file is an image...
|
||||
if (type == PERCEIVED_TYPE_IMAGE)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user