shell32: Use SHELL_ConfirmDialogW when deleting multiple files.
This commit is contained in:
parent
be115ef0ca
commit
529346e8f4
|
@ -149,7 +149,7 @@ void FreeChangeNotifications(void);
|
|||
|
||||
BOOL SHELL_DeleteDirectoryW(LPCWSTR pwszDir, BOOL bShowUI);
|
||||
BOOL SHELL_DeleteFileW(LPCWSTR pwszFile, BOOL bShowUI);
|
||||
BOOL SHELL_ConfirmDialog(int nKindOfDialog, LPCSTR szDir);
|
||||
BOOL SHELL_ConfirmDialogW(int nKindOfDialog, LPCWSTR szDir);
|
||||
|
||||
/* 16-bit functions */
|
||||
void WINAPI DragAcceptFiles16(HWND16 hWnd, BOOL16 b);
|
||||
|
|
|
@ -1172,10 +1172,11 @@ ISFHelper_fnDeleteItems (ISFHelper * iface, UINT cidl, LPCITEMIDLIST * apidl)
|
|||
|
||||
/* deleting multiple items so give a slightly different warning */
|
||||
if (cidl != 1) {
|
||||
char tmp[8];
|
||||
WCHAR tmp[8];
|
||||
static const WCHAR format[] = {'%','d',0};
|
||||
|
||||
snprintf (tmp, sizeof (tmp), "%d", cidl);
|
||||
if (!SHELL_ConfirmDialog(ASK_DELETE_MULTIPLE_ITEM, tmp))
|
||||
wnsprintfW (tmp, sizeof(tmp)/sizeof(tmp[0]), format, cidl);
|
||||
if (!SHELL_ConfirmDialogW(ASK_DELETE_MULTIPLE_ITEM, tmp))
|
||||
return E_FAIL;
|
||||
bConfirm = FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue