mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 12:46:47 +02:00
MSIX: Fix for Heap Corruption bug in ImageResizer (#1655)
This commit is contained in:
@@ -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
|
// TODO: Instead, detect whether there's a WIC codec installed that can handle this file
|
||||||
AssocGetPerceivedType(pszExt, &type, &flag, NULL);
|
AssocGetPerceivedType(pszExt, &type, &flag, NULL);
|
||||||
|
|
||||||
free(pszPath);
|
CoTaskMemFree(pszPath);
|
||||||
// If selected file is an image...
|
// If selected file is an image...
|
||||||
if (type == PERCEIVED_TYPE_IMAGE)
|
if (type == PERCEIVED_TYPE_IMAGE)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user