Skip to content

Commit 14e859d

Browse files
committed
Update
1 parent 96df05c commit 14e859d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App.Storage/Storables/WindowsStorage/WindowsStorable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public IContextMenu* ContextMenu
3939
IShellItem* pShellItem = null;
4040

4141
fixed (char* pszPath = szPath)
42-
hr = PInvoke.SHCreateItemFromParsingName(pszPath, null, IID.IID_IShellItem, (void**)&pShellItem);
42+
hr = PInvoke.SHCreateItemFromParsingName(pszPath, null, IID.IID_IShellItem, (void**)&pShellItem).ThrowOnFailure();
4343

4444
if (pShellItem is null)
4545
return null;

0 commit comments

Comments
 (0)