Skip to content

Commit 3e14c8e

Browse files
committed
Merge branch 'dev'
2 parents 4305ec3 + 62bbe39 commit 3e14c8e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Plugins/Wox.Plugin.Program/Logger/ProgramLogger.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ private static bool IsKnownWinProgramError(Exception e, string callingMethodName
110110
private static bool IsKnownUWPProgramError(Exception e, string callingMethodName)
111111
{
112112
if (((e.HResult == -2147024774 || e.HResult == -2147009769) && callingMethodName == "ResourceFromPri")
113-
|| (e.HResult == -2147024894 && callingMethodName == "LogoPathFromUri"))
113+
|| (e.HResult == -2147024894 && (callingMethodName == "LogoPathFromUri" || callingMethodName == "ImageFromPath"))
114+
|| (e.HResult == -2147024864 && callingMethodName == "InitializeAppInfo"))
114115
return true;
115116

116117
if (callingMethodName == "XmlNamespaces")

Plugins/Wox.Plugin.Program/Programs/UWP.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Diagnostics;
44
using System.IO;
@@ -86,6 +86,8 @@ private void InitializeAppInfo()
8686
var e = Marshal.GetExceptionForHR((int)hResult);
8787
ProgramLogger.LogException($"|UWP|InitializeAppInfo|{path}" +
8888
"|Error caused while trying to get the details of the UWP program", e);
89+
90+
Apps = new List<Application>().ToArray();
8991
}
9092
}
9193

0 commit comments

Comments
 (0)