Skip to content

Commit

Permalink
Issue #85, #86: never show icon for MOBI; use WIC for MOBI
Browse files Browse the repository at this point in the history
  • Loading branch information
fire-eggs committed Apr 29, 2024
1 parent 34bb2fd commit 15589c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CBXShell/cbxArchive.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,15 @@ class CCBXArchive
IStream* pIs = NULL;
if (S_OK == CreateStreamOnHGlobal(hG, TRUE, (LPSTREAM*)&pIs))//autofree hG
{
*phBmpThumbnail = ThumbnailFromIStream(pIs, &thumbSize, showIcon);
// Issue #84: never show archive icon for MOBI
//*phBmpThumbnail = ThumbnailFromIStream(pIs, &thumbSize, FALSE); // showIcon);
//hr = WICCreate32BitsPerPixelHBITMAP(pIs, phBmpThumbnail);

// Issue *86 use WIC for mobi
IStream* pImageStream = SHCreateMemStream((const BYTE*)pBuf, record->size);
HRESULT hr = WICCreate32BitsPerPixelHBITMAP(pImageStream, phBmpThumbnail);
pImageStream->Release();

pIs->Release();
pIs = NULL;
}
Expand Down

0 comments on commit 15589c0

Please sign in to comment.