Extract icons only

This commit is contained in:
Kovid Goyal 2023-01-05 07:18:05 +05:30
parent 88d248b842
commit 928e96cf47
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1122,7 +1122,7 @@ get_icon_for_file(PyObject *self, PyObject *args) {
SIZE size = { width, height };
HBITMAP hbmp;
Py_BEGIN_ALLOW_THREADS
hr = pImageFactory->GetImage(size, SIIGBF_BIGGERSIZEOK | SIIGBF_SCALEUP, &hbmp);
hr = pImageFactory->GetImage(size, SIIGBF_BIGGERSIZEOK | SIIGBF_SCALEUP | SIIGBF_ICONONLY, &hbmp);
pImageFactory->Release();
Py_END_ALLOW_THREADS
if (!SUCCEEDED(hr)) {