Skip to content

Commit 05aedc6

Browse files
authored
Fix an issue where the "Empty Recycle Bin" menu entry was always disabled (#1976)
1 parent 85556cf commit 05aedc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Files.Launcher/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ private static async Task parseRecycleBinAction(AppServiceRequestReceivedEventAr
486486
var responseQuery = new ValueSet();
487487
Shell32.SHQUERYRBINFO queryBinInfo = new Shell32.SHQUERYRBINFO();
488488
queryBinInfo.cbSize = (uint)Marshal.SizeOf(queryBinInfo);
489-
var res = Shell32.SHQueryRecycleBin(null, ref queryBinInfo);
489+
var res = Shell32.SHQueryRecycleBin("", ref queryBinInfo);
490490
if (res == HRESULT.S_OK)
491491
{
492492
var numItems = queryBinInfo.i64NumItems;

0 commit comments

Comments
 (0)