Skip to content

Commit 9aa5e02

Browse files
committed
peview: Fix missing properties for some files
1 parent 8ade7d9 commit 9aa5e02

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

tools/peview/propstore.c

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,31 @@ VOID PvpPeEnumerateFilePropStore(
2626
_In_ HWND ListViewHandle
2727
)
2828
{
29+
HRESULT status;
2930
IPropertyStore *propstore;
3031
ULONG count;
3132
ULONG i;
3233

33-
if (SUCCEEDED(SHGetPropertyStoreFromParsingName(
34+
status = SHGetPropertyStoreFromParsingName(
3435
PvFileName->Buffer,
3536
NULL,
3637
GPS_DEFAULT | GPS_EXTRINSICPROPERTIES | GPS_VOLATILEPROPERTIES,
3738
&IID_IPropertyStore,
3839
&propstore
39-
)))
40+
);
41+
42+
if (status == HRESULT_FROM_WIN32(ERROR_RESOURCE_TYPE_NOT_FOUND))
43+
{
44+
status = SHGetPropertyStoreFromParsingName(
45+
PvFileName->Buffer,
46+
NULL,
47+
GPS_FASTPROPERTIESONLY,
48+
&IID_IPropertyStore,
49+
&propstore
50+
);
51+
}
52+
53+
if (SUCCEEDED(status))
4054
{
4155
if (SUCCEEDED(IPropertyStore_GetCount(propstore, &count)))
4256
{

0 commit comments

Comments
 (0)