Commit Graph

89 Commits

Author SHA1 Message Date
Alexandre Julliard 9d2d5eae2d shell32: Don't wrap SHELL_ConfirmIDs in an assert. Fixed return value. 2007-02-14 14:43:50 +01:00
Mikołaj Zalewski 33ee219ce3 shell32: Allow overwriting files in SHFileOperation(FO_COPY) (with confirmation dialogs). 2007-02-12 12:38:57 +01:00
Mikołaj Zalewski c55277c7e1 shell32: Add a confirmation dialog with a "Yes to All" option. 2007-02-12 12:38:39 +01:00
Andrew Talbot 388fe7e371 shell32: Declare some functions static. 2007-02-07 11:03:28 +01:00
Alexandre Julliard a051487d3b shell32: Avoid using garbage data in wildcard expansion. 2006-12-11 15:37:35 +01:00
Alexandre Julliard dc0c3677cd shell32: Don't use the short path name to delete files in SHFileOperation. 2006-11-14 12:00:23 +01:00
Andrew Talbot 19e85ca5a9 shell32: Another cast-qual warning fix. 2006-10-02 11:55:32 +02:00
Mikołaj Zalewski c1ca35d051 shell32: Fix a bug in SHELL_ConfirmW.
Fix a bug introduced while changing the OK/Cancel to Yes/No.
2006-08-26 18:54:47 +02:00
Mike McCormack e5d9b2f189 shell32: Use kernel functions in preference to libwine ones. 2006-08-24 12:42:42 +02:00
Mike McCormack 000eddbc8c shell32: Don't add the directory name twice when recursing into subdirectories. 2006-08-22 12:00:14 +02:00
Mikołaj Zalewski 961881836e shell32: Use Yes/No instead of OK/Cancel in confirm dialogs. 2006-08-18 11:36:52 +02:00
Mike McCormack 5678ec4db6 shell32: Use case insensitive comparisons when comparing paths. 2006-08-08 19:34:40 +02:00
Mikołaj Zalewski 034c1c4f18 shell32: Call the trashing code from SHFileOperationW. 2006-07-31 12:55:41 +02:00
Mikołaj Zalewski ca7de052b2 shell32: Add trashing confirmations. 2006-07-31 12:38:54 +02:00
Mikołaj Zalewski ea0a102d55 shell32: Show a confirmation before deleting files with syscalls. 2006-07-07 17:28:10 +02:00
Pierre d'Herbemont 0eb07db3b6 shell: Move SHIsFileAvailableOffline from shell.c to shlfileop.c to
ensure the 16/32 bits separation.
2006-07-07 16:57:28 +02:00
Mikołaj Zalewski 89b458dac7 shell32: Add an icon for delete confirmation. 2006-07-03 11:36:52 +02:00
Mikołaj Zalewski cb0c81ae8c shell32: Allow for custom icons in confirmation messages. 2006-07-03 11:35:29 +02:00
Mikołaj Zalewski e5b9a79cbc shell32: Pass the correct parent hwnd to confirmation dialogs. 2006-07-03 11:35:14 +02:00
Mikołaj Zalewski 9078c6af45 shell32: Remove the now unused SHELL_DeleteFileW. 2006-07-03 11:33:51 +02:00
Mikołaj Zalewski ce9471f18e shell32: If needed show a confirmation dialog when deleting with SHFileOperation.
Show a confirmation dialog in SHFileOperationW for the FO_DELETE
operation when called without FOF_NOCONFIRMATION or with
FOF_WANTNUKEWARNING. That way the user's files won't be deleted
without a warning.
2006-06-28 15:39:45 +02:00
Mikołaj Zalewski 5de24f0320 shell32: Fix the nBufferMax param of LoadStringW calls from SHELL_ConfirmDialogW. 2006-06-21 11:13:27 +02:00
Mikołaj Zalewski 6352734eae shell32: Remove the now unused SHELL_ConfirmDialog. 2006-06-20 11:06:13 +02:00
Phil Lodwick 5a13cba8b6 shell32: SHCreateDirectoryEx can create a non-nested directory. 2006-06-08 11:11:43 +02:00
Mikołaj Zalewski 276bbb9f97 shell32: Remove the now unused SHELL_DeleteFileA and SHELL_DeleteDirectoryA. 2006-06-02 20:43:27 +02:00
Mikołaj Zalewski b84f3093d5 shell32: Avoid Unicode->ANSI conversion when deleting a file. 2006-06-02 20:43:08 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Alexandre Julliard 1110d62752 shell32: Grow the file list dynamically in SHFileOperation.
This avoids searching the same directories twice, once to count the
files and then once for real.
2006-03-06 17:47:57 +01:00
Alexandre Julliard 23cb632be2 shell32: Store only the file attributes in the file list for SHFileOperation.
We don't need the rest of the WIN32_FIND_DATA structure.
2006-03-06 16:44:31 +01:00
Alexandre Julliard b222001def shell32: Fixed handling of null-terminated file list in SHFileOperation. 2006-03-06 16:42:34 +01:00
Aric Stewart c29b7c3524 shell32: Skip dot directories in SHFileOperation.
In ShFileOperation when generating a file list with * wildcards, for
example for deletion, do not include the dot directories (. and ..) in
the list, because that cause the operation to spiral out of control.
2006-03-06 15:57:22 +01:00
Alexandre Julliard d37a119ee6 shell32: Fixed a couple of FindFirstFile handle leaks. 2006-01-27 15:48:29 +01:00
James Hawkins 1be970d485 shell32: Reimplement a factored SHFileOperation. 2006-01-23 11:22:59 +01:00
Markus Amsler 671738d5c1 Improve c2man Documented-Total count. Changes:
- add missing description
- add missing returns section
- complete missing A/W pairs
- reformate comments, to match c2man requirements
2005-11-10 11:15:22 +00:00
Francois Gouget f5c9da6860 Assorted spelling fixes. 2005-05-06 15:44:31 +00:00
Troy Rollo 98d336c363 Fix SEGV for non-fully-qualified destination paths.
Don't fail ShFileOperationW if FOF_ALLOWUNDO is passed.
2005-04-19 09:49:05 +00:00
Hans Leidekker 2294e30dd4 - Revert wrong -noname markup for Drag*, DoEnvironmentSubst and
SHGetNewLinkInfo{A,W}.
- Also mark stub exports -noname when they are exported by ordinal
  only on win98/2k.
- Implementation level stubs for SheChangeDirA, SheGetDirA,
  SHHelpShortcuts_RunDLL{A,W}.
- New spec file stubs for Control_RunDLLAsUserW,
  FixupOptionalComponents, OCInstall, SHChangeNotifySuspendResume,
  SHCreateProcessAsUserW, SHExtractIconsW,
  SHInvokePrinterCommand{A,W}, SHIsFileAvailableOffline,
  SHLoadNonloadedIconOverlayIdentifiers, SHPathPrepareForWrite{A,W},
  ShellExec_RunDLL{,A,W}, SHGetIconOverlayIndex{A,W}.
2005-02-21 18:37:33 +00:00
Joris Huizer e889f71269 - renamed file_operation_delete and to shfileops_delete
- renamed file_operation_checkFlags to shfileops_check_flags
- added helper function shfileops_do_operation()
- added helper function shfileops_get_parent_attr()
- added helper function shfileops_get_parent_attr2()
- various cleanups in SHFileOperationW using these functions
2005-02-17 11:50:25 +00:00
Joris Huizer 2d58a624dd - add file_operation_delete
- add file_operation_checkFlags
- use these in SHFileOperationW replacing inline code
2005-01-14 16:51:14 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Alexandre Julliard 758b2887e9 Remove some no longer needed AW functions. 2004-12-17 19:20:07 +00:00
Rolf Kalbermatter 87fb440e71 Fix bad memory allocation for unicode buffer. 2004-10-27 21:18:35 +00:00
Francois Gouget 3bb5b093e8 Assorted spelling fixes. 2004-10-22 22:27:51 +00:00
Rolf Kalbermatter eb883577e4 - SHCreateDirectory should create intermediate directories if
necessary.
- Remove extra boolean parameter in SHNotifyMoveFile as it is not
  used.
- Use in SHFileOperation the function SHNotifyCreateDirectory instead
  of SHCreateDirectoryEx as it does not anymore what is needed here.
- Fix several unsigned/signed mismatch warnings.
2004-10-21 22:29:42 +00:00
Rolf Kalbermatter 20952a5d23 Modify ANSI functions to allocate intermediate Unicode strings on the
heap instead of stack.
2004-10-18 21:45:16 +00:00
Rolf Kalbermatter 29d4ec4f85 Added SHFreeNameMappings implementation. 2004-10-18 19:33:45 +00:00
Rolf Kalbermatter 18514ca547 Fix bug found by Piotr Caban, where our function tried to delete a
directory eventhough the user canceled the operation.
2004-10-06 00:04:39 +00:00
Mike McCormack 22442cd880 Clean up messy comment in SHFileOperation.
Reduce the number of goto labels in SHFileOperation by one.
2004-08-16 19:57:05 +00:00
Francois Gouget f8e01efb3d Assorted spelling fixes. 2004-07-23 23:02:09 +00:00
Ge van Geldorp c390bb2aea Match prototypes to Platform SDK. 2004-06-28 20:32:53 +00:00