[Peek]Fix 0 byte size displayed (#27709)

fix 0 byte size displayed
This commit is contained in:
Davide Giacometti 2023-08-06 17:26:44 +02:00 committed by GitHub
parent 6948ffca53
commit 287fce236d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -123,6 +123,7 @@ backtracer
bak bak
bbwe bbwe
bck bck
BESTEFFORT
betadele betadele
betsegaw betsegaw
BGR BGR

View File

@ -66,7 +66,7 @@ namespace Peek.Common.Helpers
/// <param name="path">The file/folder path</param> /// <param name="path">The file/folder path</param>
/// <param name="flags">The property store flags</param> /// <param name="flags">The property store flags</param>
/// <returns>an IPropertyStroe interface</returns> /// <returns>an IPropertyStroe interface</returns>
private static DisposablePropertyStore GetPropertyStoreFromPath(string path, GETPROPERTYSTOREFLAGS flags = GETPROPERTYSTOREFLAGS.GPS_EXTRINSICPROPERTIES) private static DisposablePropertyStore GetPropertyStoreFromPath(string path, GETPROPERTYSTOREFLAGS flags = GETPROPERTYSTOREFLAGS.GPS_EXTRINSICPROPERTIES | GETPROPERTYSTOREFLAGS.GPS_BESTEFFORT)
{ {
IShellItem2? shellItem2 = null; IShellItem2? shellItem2 = null;
IntPtr ppPropertyStore = IntPtr.Zero; IntPtr ppPropertyStore = IntPtr.Zero;