shell32: Use SHELL_ConfirmDialogW when deleting multiple files.

This commit is contained in:
Mikołaj Zalewski 2006-06-20 09:47:11 +02:00 committed by Alexandre Julliard
parent be115ef0ca
commit 529346e8f4
2 changed files with 5 additions and 4 deletions

View File

@ -149,7 +149,7 @@ void FreeChangeNotifications(void);
BOOL SHELL_DeleteDirectoryW(LPCWSTR pwszDir, BOOL bShowUI); BOOL SHELL_DeleteDirectoryW(LPCWSTR pwszDir, BOOL bShowUI);
BOOL SHELL_DeleteFileW(LPCWSTR pwszFile, 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 */ /* 16-bit functions */
void WINAPI DragAcceptFiles16(HWND16 hWnd, BOOL16 b); void WINAPI DragAcceptFiles16(HWND16 hWnd, BOOL16 b);

View File

@ -1172,10 +1172,11 @@ ISFHelper_fnDeleteItems (ISFHelper * iface, UINT cidl, LPCITEMIDLIST * apidl)
/* deleting multiple items so give a slightly different warning */ /* deleting multiple items so give a slightly different warning */
if (cidl != 1) { if (cidl != 1) {
char tmp[8]; WCHAR tmp[8];
static const WCHAR format[] = {'%','d',0};
snprintf (tmp, sizeof (tmp), "%d", cidl); wnsprintfW (tmp, sizeof(tmp)/sizeof(tmp[0]), format, cidl);
if (!SHELL_ConfirmDialog(ASK_DELETE_MULTIPLE_ITEM, tmp)) if (!SHELL_ConfirmDialogW(ASK_DELETE_MULTIPLE_ITEM, tmp))
return E_FAIL; return E_FAIL;
bConfirm = FALSE; bConfirm = FALSE;
} }