Chip Davis
efac5d0672
shell32: Don't use Carbon on Mac OS to find the Trash.
...
Due to a weird interaction between Wine and (what I believe to be)
os_log/os_signpost, we can't use FSPathMakeRef() (nor any other function
that calls that) from a Wine process. We also can't use the
NSSearchPathForDirectoriesInDomains() function. Setting aside the fact
that it's Objective-C (something we can work around, given that NS and
CF types are toll-free bridged), a) support for getting the Trash folder
was only added in 10.8 (when FSFindFolder() was deprecated), and b) it
doesn't even support volume-specific Trash folders.
For now, just hardcode the paths to the Trash folder.
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-20 09:09:33 +02:00
Nikolay Sivov
e3b200bd8a
shell32: Use global memory allocation helpers.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-22 14:16:33 +01:00
Piotr Caban
6dac2f7a77
shell32: Add partial support for Mac trash enumeration.
2015-02-02 22:29:46 +09:00
Piotr Caban
8aba9366ed
shell32: Pass trash path to TRASH_EnumItems.
2015-02-02 22:29:32 +09:00
Vincent Povirk
fa8d59c30b
shell32: Set tm_isdst before calling mktime.
2014-06-18 16:26:43 +02:00
Nikolay Sivov
3cadbbb4b0
shell32: Use a proper deallocator (Coverity).
2014-04-15 09:45:06 +02:00
Ken Thomases
cd454fdc2e
shell32: Partially implement Mac Trash backing for the Recycle Bin.
2012-03-16 13:02:54 +01:00
Frédéric Delanoy
7e309601f3
dlls: Assorted spelling fixes.
2011-08-03 14:15:50 +02:00
Francois Gouget
e5de59b625
shell32: Add a trailing '\n' to Wine trace calls.
2011-07-14 14:48:10 +02:00
Jay Yang
80c62ca203
shell32: Implement restoring items from the recycle bin.
2011-07-09 12:16:36 +02:00
Jay Yang
3613a421e6
shell32: Implement SHEmptyRecycleBin.
2011-07-09 12:04:20 +02:00
Austin English
b9cc7987cb
shell32: Avoid shadowing a parameter.
2011-03-09 15:54:21 +01:00
Mikhail Maroukhine
cc7eaa3293
shell32: Fix compiler warnings with flag -Wcast-qual.
2010-03-29 12:16:36 +02:00
Francois Gouget
fc93ff351e
shell32: Get rid of TRASH_ELEMENT and TRASH_DisposeElement().
...
The latter was unused while the former did not seem very useful.
2009-02-09 13:15:04 +01:00
Alexandre Julliard
03fe2d0d51
shell32: Use RtlRandom instead of the non-portable rand_r.
2008-12-22 20:14:59 +01:00
Alexandre Julliard
1ccc170b32
shell32: Use Win32 functions instead of Unix ones to retrieve the current time.
2008-12-22 11:45:20 +01:00
Francois Gouget
215738a140
dirent.h is a conditional include now.
2008-10-20 11:37:27 +02:00
Francois Gouget
44b52b128c
Assorted spelling fixes.
2008-01-16 12:48:29 +01:00
Andrew Talbot
efdc116856
shell32: Constify some variables.
2007-11-06 13:02:25 +01:00
Andrew Talbot
0b1fb44aaf
shell32: Declare some functions static.
2007-02-07 11:03:33 +01:00
Francois Gouget
c35b6b9223
shell32: Fix inclusion of conditional headers (spotted by winapi_check).
2006-11-13 12:59:18 +01:00
James Hawkins
7b89ff88e8
janitorial: Remove redundant NULL checks before SHFree.
2006-10-07 17:52:59 +02:00
Mikołaj Zalewski
47b40c5879
shell32: Show the original file name and deletion date in the Trash folder.
2006-08-18 11:42:00 +02:00
Mikołaj Zalewski
76a20d38f3
shell32: Add trash items enumeration.
2006-08-09 12:47:57 +02:00
Mikołaj Zalewski
289e469e7c
shell32: Add a Trash virtual folder.
2006-08-09 12:47:39 +02:00
Francois Gouget
ce9b4baad8
Assorted spelling fixes.
2006-08-07 13:52:55 +02:00
Mikołaj Zalewski
718a9d6df5
shell32: Send directories and non-regular files to the trash.
2006-08-01 18:35:03 +02:00
Mikołaj Zalewski
f2686c7ce9
shell32: Add trashing support functions.
2006-07-31 12:55:12 +02:00