Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ea0a102d
Commit
ea0a102d
authored
Jul 06, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Jul 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Show a confirmation before deleting files with syscalls.
parent
4485bf0b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
0 deletions
+12
-0
shell32_En.rc
dlls/shell32/shell32_En.rc
+1
-0
shell32_main.h
dlls/shell32/shell32_main.h
+1
-0
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+4
-0
shlfileop.c
dlls/shell32/shlfileop.c
+5
-0
shresdef.h
dlls/shell32/shresdef.h
+1
-0
No files found.
dlls/shell32/shell32_En.rc
View file @
ea0a102d
...
...
@@ -164,6 +164,7 @@ STRINGTABLE DISCARDABLE
IDS_DELETEFOLDER_CAPTION "Confirm folder deletion"
IDS_DELETEITEM_TEXT "Are you sure you want to delete '%1'?"
IDS_DELETEMULTIPLE_TEXT "Are you sure you want to delete these %1 items?"
IDS_DELETESELECTED_TEXT "Are you sure you want to delete the selected item(s)?"
IDS_OVERWRITEFILE_TEXT "OverWrite File %1?"
IDS_OVERWRITEFILE_CAPTION "Confirm File OverWrite"
...
...
dlls/shell32/shell32_main.h
View file @
ea0a102d
...
...
@@ -147,6 +147,7 @@ void FreeChangeNotifications(void);
#define ASK_DELETE_MULTIPLE_ITEM 3
#define ASK_CREATE_FOLDER 4
#define ASK_OVERWRITE_FILE 5
#define ASK_DELETE_SELECTED 6
BOOL
SHELL_DeleteDirectoryW
(
HWND
hwnd
,
LPCWSTR
pwszDir
,
BOOL
bShowUI
);
BOOL
SHELL_ConfirmDialogW
(
HWND
hWnd
,
int
nKindOfDialog
,
LPCWSTR
szDir
);
...
...
dlls/shell32/shfldr_unixfs.c
View file @
ea0a102d
...
...
@@ -1825,8 +1825,12 @@ static HRESULT UNIXFS_delete_with_shfileop(UnixFolder *This, UINT cidl, LPCITEMI
static
HRESULT
UNIXFS_delete_with_syscalls
(
UnixFolder
*
This
,
UINT
cidl
,
LPCITEMIDLIST
*
apidl
)
{
char
szAbsolute
[
FILENAME_MAX
],
*
pszRelative
;
static
const
WCHAR
empty
[]
=
{
0
};
int
i
;
if
(
!
SHELL_ConfirmDialogW
(
GetActiveWindow
(),
ASK_DELETE_SELECTED
,
empty
))
return
S_OK
;
lstrcpyA
(
szAbsolute
,
This
->
m_pszPath
);
pszRelative
=
szAbsolute
+
lstrlenA
(
szAbsolute
);
...
...
dlls/shell32/shlfileop.c
View file @
ea0a102d
...
...
@@ -91,6 +91,11 @@ static BOOL SHELL_ConfirmIDs(int nKindOfDialog, SHELL_ConfirmIDstruc *ids)
ids
->
caption_resource_id
=
IDS_DELETEITEM_CAPTION
;
ids
->
text_resource_id
=
IDS_DELETEMULTIPLE_TEXT
;
return
TRUE
;
case
ASK_DELETE_SELECTED
:
ids
->
icon_resource_id
=
IDI_SHELL_CONFIRM_DELETE
;
ids
->
caption_resource_id
=
IDS_DELETEITEM_CAPTION
;
ids
->
text_resource_id
=
IDS_DELETESELECTED_TEXT
;
return
TRUE
;
case
ASK_OVERWRITE_FILE
:
ids
->
hIconInstance
=
NULL
;
ids
->
icon_resource_id
=
IDI_WARNING
;
...
...
dlls/shell32/shresdef.h
View file @
ea0a102d
...
...
@@ -52,6 +52,7 @@
#define IDS_DELETEMULTIPLE_TEXT 35
#define IDS_OVERWRITEFILE_CAPTION 36
#define IDS_OVERWRITEFILE_TEXT 37
#define IDS_DELETESELECTED_TEXT 38
#define IDS_RESTART_TITLE 40
#define IDS_RESTART_PROMPT 41
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment