File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,31 @@ VOID PvpPeEnumerateFilePropStore(
26
26
_In_ HWND ListViewHandle
27
27
)
28
28
{
29
+ HRESULT status ;
29
30
IPropertyStore * propstore ;
30
31
ULONG count ;
31
32
ULONG i ;
32
33
33
- if ( SUCCEEDED ( SHGetPropertyStoreFromParsingName (
34
+ status = SHGetPropertyStoreFromParsingName (
34
35
PvFileName -> Buffer ,
35
36
NULL ,
36
37
GPS_DEFAULT | GPS_EXTRINSICPROPERTIES | GPS_VOLATILEPROPERTIES ,
37
38
& IID_IPropertyStore ,
38
39
& 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 ))
40
54
{
41
55
if (SUCCEEDED (IPropertyStore_GetCount (propstore , & count )))
42
56
{
You can’t perform that action at this time.
0 commit comments