From 718a9d6df50aafca22418bd36d39c45370483820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Zalewski?= Date: Tue, 1 Aug 2006 17:20:03 +0200 Subject: [PATCH] shell32: Send directories and non-regular files to the trash. --- dlls/shell32/trash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/trash.c b/dlls/shell32/trash.c index 595ab08522c..2e96bfb0223 100644 --- a/dlls/shell32/trash.c +++ b/dlls/shell32/trash.c @@ -132,7 +132,7 @@ static BOOL file_good_for_bucket(TRASH_BUCKET *pBucket, struct stat *file_stat) { if (pBucket->device != file_stat->st_dev) return FALSE; - return S_ISREG(file_stat->st_mode); + return TRUE; } BOOL TRASH_CanTrashFile(LPCWSTR wszPath)