Skip to content

Commit 8154c22

Browse files
0x5bfahez2010
andauthored
Update src/Files.App/Services/Windows/WindowsDialogService.cs
Co-authored-by: Steve <[email protected]> Signed-off-by: 0x5BFA <[email protected]>
1 parent 41ca094 commit 8154c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Services/Windows/WindowsDialogService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public unsafe bool Open_FileSaveDialog(nint hWnd, bool pickFoldersOnly, string[]
9393
try
9494
{
9595
using ComPtr<IFileSaveDialog> pDialog = default;
96-
HRESULT hr = pDialog.CoCreateInstance(CLSID.CLSID_FileSaveDialog, null, CLSCTX.CLSCTX_INPROC_SERVER);
96+
HRESULT hr = pDialog.CoCreateInstance(CLSID.CLSID_FileSaveDialog, null, CLSCTX.CLSCTX_INPROC_SERVER).ThrowOnFailure();
9797

9898
if (filters.Length is not 0 && filters.Length % 2 is 0)
9999
{

0 commit comments

Comments
 (0)