Skip to content

Commit f72ea3c

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 8154c22 commit f72ea3c

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
@@ -23,7 +23,7 @@ public unsafe bool Open_FileOpenDialog(nint hWnd, bool pickFoldersOnly, string[]
2323
try
2424
{
2525
using ComPtr<IFileOpenDialog> pDialog = default;
26-
HRESULT hr = pDialog.CoCreateInstance(CLSID.CLSID_FileOpenDialog, null, CLSCTX.CLSCTX_INPROC_SERVER);
26+
HRESULT hr = pDialog.CoCreateInstance(CLSID.CLSID_FileOpenDialog, null, CLSCTX.CLSCTX_INPROC_SERVER).ThrowOnFailure();
2727

2828
if (filters.Length is not 0 && filters.Length % 2 is 0)
2929
{

0 commit comments

Comments
 (0)