Skip to content

Commit f8416d7

Browse files
Fix argument of SHParseDisplayName()
1 parent 50dbefb commit f8416d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Flow.Launcher.Infrastructure/Win32Helper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,10 +849,10 @@ public static unsafe void OpenFolderAndSelectFile(string filePath)
849849

850850
try
851851
{
852-
var hrFolder = PInvoke.SHParseDisplayName(folderPath, null, out pidlFolder, 0, null);
852+
var hrFolder = PInvoke.SHParseDisplayName(folderPath, null, out pidlFolder, 0, out _);
853853
if (hrFolder.Failed) throw new COMException("Failed to parse folder path", hrFolder);
854854

855-
var hrFile = PInvoke.SHParseDisplayName(filePath, null, out pidlFile, 0, null);
855+
var hrFile = PInvoke.SHParseDisplayName(filePath, null, out pidlFile, 0, out _);
856856
if (hrFile.Failed) throw new COMException("Failed to parse file path", hrFile);
857857

858858
var hrSelect = PInvoke.SHOpenFolderAndSelectItems(pidlFolder, 1, &pidlFile, 0);

0 commit comments

Comments
 (0)