Skip to content

Commit 57c1d29

Browse files
committed
Re-enable using composite image, Restore stream->Release
1 parent 40d9091 commit 57c1d29

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

PsdThumbnailProvider/GetThumbnail.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ HBITMAP GetPSDThumbnail(IStream* stream) {
124124
}
125125

126126
// read composite image
127-
if (false && colorMode == 3 && ((width <= 256 && height <= 256) || !thumbnailOffset)) {
127+
if (colorMode == 3 && ((width <= 256 && height <= 256) || !thumbnailOffset)) {
128128
Seek(stream, reasourceOffset + resourcesLength, STREAM_SEEK_SET);
129129

130130
auto layerAndMaskInfoLength = ReadSectionLength(stream);

PsdThumbnailProvider/PsdThumbnailProvider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ IFACEMETHODIMP PsdThumbnailProvider::GetThumbnail(UINT cx, HBITMAP *phbmp, WTS_A
5757
*pdwAlpha = WTSAT_ARGB;
5858
*phbmp = GetPSDThumbnail(m_pStream);
5959

60-
// m_pStream->Release();
60+
m_pStream->Release();
6161

6262
return *phbmp != NULL ? NOERROR : E_NOTIMPL;
6363
}

Setup/Product.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3-
<Product Id="*" Name="PSD Thumbnail Provider" Language="1033" Version="1.6.0.0" Manufacturer="Agamnentzar" UpgradeCode="cb88ff56-355c-48fd-8343-8d3f40ef02ce">
3+
<Product Id="*" Name="PSD Thumbnail Provider" Language="1033" Version="1.6.1.0" Manufacturer="Agamnentzar" UpgradeCode="cb88ff56-355c-48fd-8343-8d3f40ef02ce">
44
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
55
<Condition Message="You need to be an administrator to install this product.">Privileged</Condition>
66
<MajorUpgrade Schedule="afterInstallInitialize" DowngradeErrorMessage="A newer version of PSD Thumbnail Provider is already installed." />

0 commit comments

Comments
 (0)