Skip to content

Commit

Permalink
Update StorageNetworkService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5bfa authored Sep 22, 2024
1 parent 3c7c941 commit b193542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Files.App/Services/Storage/StorageNetworkService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ unsafe IEnumerable<ILocatableFolder> GetShortcuts()
targetPath = Environment.ExpandEnvironmentVariables(pszTargetPath.ToString());

// Test 1
pShellItem.Get()->GetDisplayName(SIGDN_DESKTOPABSOLUTEPARSING, out var szDisplayNameTest);
pShellItem.Get()->GetDisplayName(SIGDN.SIGDN_DESKTOPABSOLUTEPARSING, out var szDisplayNameTest);
var filePathTest = szDisplayNameTest.ToString();
PInvoke.CoTaskMemFree(szDisplayNameTest.Value); // break here

// Test 2
pShellItem.Get()->GetDisplayName(SIGDN_PARENTRELATIVEPARSING, out szDisplayNameTest);
pShellItem.Get()->GetDisplayName(SIGDN.SIGDN_PARENTRELATIVEPARSING, out szDisplayNameTest);
filePathTest = szDisplayNameTest.ToString();
PInvoke.CoTaskMemFree(szDisplayNameTest.Value); // break here
}
Expand Down

0 comments on commit b193542

Please sign in to comment.