You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-04-13 14:42:51 -07:00
Rebase against ae5d0b22291d866a49f293e782b43ba025ab77ec
This commit is contained in:
@@ -1,26 +1,17 @@
|
||||
From 60b2a9f4bbbda5675491ae323b97fdcc84dacc4f Mon Sep 17 00:00:00 2001
|
||||
From d606011cab7ce44de90b6945796deee86bacba44 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
||||
Date: Tue, 24 Feb 2015 04:25:29 +0100
|
||||
Subject: [PATCH] shell32: Correct indentation in shfileop.c.
|
||||
|
||||
---
|
||||
dlls/shell32/shlfileop.c | 726 +++++++++++++++++++++++------------------------
|
||||
1 file changed, 363 insertions(+), 363 deletions(-)
|
||||
dlls/shell32/shlfileop.c | 787 +++++++++++++++++++++++------------------------
|
||||
1 file changed, 393 insertions(+), 394 deletions(-)
|
||||
|
||||
diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c
|
||||
index c18a3e9..91d5781 100644
|
||||
index 117d668..975106a 100644
|
||||
--- a/dlls/shell32/shlfileop.c
|
||||
+++ b/dlls/shell32/shlfileop.c
|
||||
@@ -165,7 +165,7 @@ static INT_PTR ConfirmMsgBox_Init(HWND hDlg, LPARAM lParam)
|
||||
width = r.right - r.left;
|
||||
height = r.bottom - r.top - yOffset;
|
||||
MoveWindow(hDlg, (GetSystemMetrics(SM_CXSCREEN) - width)/2,
|
||||
- (GetSystemMetrics(SM_CYSCREEN) - height)/2, width, height, FALSE);
|
||||
+ (GetSystemMetrics(SM_CYSCREEN) - height)/2, width, height, FALSE);
|
||||
|
||||
confirm_msg_move_button(hDlg, IDCANCEL, &xPos, yOffset, info->bYesToAll);
|
||||
confirm_msg_move_button(hDlg, IDNO, &xPos, yOffset, TRUE);
|
||||
@@ -207,107 +207,107 @@ static int SHELL_ConfirmMsgBox(HWND hWnd, LPWSTR lpszText, LPWSTR lpszCaption, H
|
||||
@@ -207,108 +207,107 @@ static int SHELL_ConfirmMsgBox(HWND hWnd, LPWSTR lpszText, LPWSTR lpszCaption, H
|
||||
/* confirmation dialogs content */
|
||||
typedef struct
|
||||
{
|
||||
@@ -37,84 +28,111 @@ index c18a3e9..91d5781 100644
|
||||
- ids->hIconInstance = shell32_hInstance;
|
||||
- switch (nKindOfDialog) {
|
||||
- case ASK_DELETE_FILE:
|
||||
+ ids->hIconInstance = shell32_hInstance;
|
||||
+ switch (nKindOfDialog) {
|
||||
+ case ASK_DELETE_FILE:
|
||||
ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
- ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
- ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
- ids->text_resource_id = IDS_DELETEITEM_TEXT;
|
||||
- return TRUE;
|
||||
- case ASK_DELETE_FOLDER:
|
||||
+ ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
+ ids->text_resource_id = IDS_DELETEITEM_TEXT;
|
||||
+ return TRUE;
|
||||
+ case ASK_DELETE_FOLDER:
|
||||
ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
- ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
- ids->caption_resource_id = IDS_DELETEFOLDER_CAPTION;
|
||||
- ids->text_resource_id = IDS_DELETEITEM_TEXT;
|
||||
- return TRUE;
|
||||
- case ASK_DELETE_MULTIPLE_ITEM:
|
||||
+ ids->caption_resource_id = IDS_DELETEFOLDER_CAPTION;
|
||||
+ ids->text_resource_id = IDS_DELETEITEM_TEXT;
|
||||
+ return TRUE;
|
||||
+ case ASK_DELETE_MULTIPLE_ITEM:
|
||||
ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
- ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
- ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
- ids->text_resource_id = IDS_DELETEMULTIPLE_TEXT;
|
||||
- return TRUE;
|
||||
- case ASK_TRASH_FILE:
|
||||
+ ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
+ ids->text_resource_id = IDS_DELETEMULTIPLE_TEXT;
|
||||
+ return TRUE;
|
||||
+ case ASK_TRASH_FILE:
|
||||
ids->icon_resource_id = IDI_SHELL_TRASH_FILE;
|
||||
ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
ids->text_resource_id = IDS_TRASHITEM_TEXT;
|
||||
return TRUE;
|
||||
- ids->icon_resource_id = IDI_SHELL_TRASH_FILE;
|
||||
- ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
- ids->text_resource_id = IDS_TRASHITEM_TEXT;
|
||||
- return TRUE;
|
||||
- case ASK_TRASH_FOLDER:
|
||||
+ case ASK_TRASH_FOLDER:
|
||||
ids->icon_resource_id = IDI_SHELL_TRASH_FILE;
|
||||
ids->caption_resource_id = IDS_DELETEFOLDER_CAPTION;
|
||||
ids->text_resource_id = IDS_TRASHFOLDER_TEXT;
|
||||
return TRUE;
|
||||
- ids->icon_resource_id = IDI_SHELL_TRASH_FILE;
|
||||
- ids->caption_resource_id = IDS_DELETEFOLDER_CAPTION;
|
||||
- ids->text_resource_id = IDS_TRASHFOLDER_TEXT;
|
||||
- return TRUE;
|
||||
- case ASK_TRASH_MULTIPLE_ITEM:
|
||||
+ case ASK_TRASH_MULTIPLE_ITEM:
|
||||
ids->icon_resource_id = IDI_SHELL_TRASH_FILE;
|
||||
ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
ids->text_resource_id = IDS_TRASHMULTIPLE_TEXT;
|
||||
return TRUE;
|
||||
- ids->icon_resource_id = IDI_SHELL_TRASH_FILE;
|
||||
- ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
- ids->text_resource_id = IDS_TRASHMULTIPLE_TEXT;
|
||||
- return TRUE;
|
||||
- case ASK_CANT_TRASH_ITEM:
|
||||
+ case ASK_CANT_TRASH_ITEM:
|
||||
ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
ids->text_resource_id = IDS_CANTTRASH_TEXT;
|
||||
return TRUE;
|
||||
- ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
- ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
- ids->text_resource_id = IDS_CANTTRASH_TEXT;
|
||||
- return TRUE;
|
||||
- case ASK_DELETE_SELECTED:
|
||||
+ case ASK_DELETE_SELECTED:
|
||||
ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
- ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
+ ids->hIconInstance = shell32_hInstance;
|
||||
+ switch (nKindOfDialog) {
|
||||
+ case ASK_DELETE_FILE:
|
||||
+ ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
ids->text_resource_id = IDS_DELETESELECTED_TEXT;
|
||||
- ids->text_resource_id = IDS_DELETESELECTED_TEXT;
|
||||
+ ids->text_resource_id = IDS_DELETEITEM_TEXT;
|
||||
return TRUE;
|
||||
- case ASK_OVERWRITE_FILE:
|
||||
+ case ASK_OVERWRITE_FILE:
|
||||
ids->hIconInstance = NULL;
|
||||
ids->icon_resource_id = IDI_WARNING;
|
||||
- ids->hIconInstance = NULL;
|
||||
- ids->icon_resource_id = IDI_WARNING;
|
||||
- ids->caption_resource_id = IDS_OVERWRITEFILE_CAPTION;
|
||||
- ids->text_resource_id = IDS_OVERWRITEFILE_TEXT;
|
||||
+ ids->caption_resource_id = IDS_OVERWRITEFILE_CAPTION;
|
||||
+ ids->text_resource_id = IDS_OVERWRITEFILE_TEXT;
|
||||
+ case ASK_DELETE_FOLDER:
|
||||
+ ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
+ ids->caption_resource_id = IDS_DELETEFOLDER_CAPTION;
|
||||
+ ids->text_resource_id = IDS_DELETEITEM_TEXT;
|
||||
return TRUE;
|
||||
- case ASK_OVERWRITE_FOLDER:
|
||||
+ case ASK_OVERWRITE_FOLDER:
|
||||
ids->hIconInstance = NULL;
|
||||
ids->icon_resource_id = IDI_WARNING;
|
||||
ids->caption_resource_id = IDS_OVERWRITEFILE_CAPTION;
|
||||
ids->text_resource_id = IDS_OVERWRITEFOLDER_TEXT;
|
||||
- ids->hIconInstance = NULL;
|
||||
- ids->icon_resource_id = IDI_WARNING;
|
||||
- ids->caption_resource_id = IDS_OVERWRITEFILE_CAPTION;
|
||||
- ids->text_resource_id = IDS_OVERWRITEFOLDER_TEXT;
|
||||
+ case ASK_DELETE_MULTIPLE_ITEM:
|
||||
+ ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
+ ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
+ ids->text_resource_id = IDS_DELETEMULTIPLE_TEXT;
|
||||
return TRUE;
|
||||
- default:
|
||||
- FIXME(" Unhandled nKindOfDialog %d stub\n", nKindOfDialog);
|
||||
- }
|
||||
- return FALSE;
|
||||
+ case ASK_TRASH_FILE:
|
||||
+ ids->icon_resource_id = IDI_SHELL_TRASH_FILE;
|
||||
+ ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
+ ids->text_resource_id = IDS_TRASHITEM_TEXT;
|
||||
+ return TRUE;
|
||||
+ case ASK_TRASH_FOLDER:
|
||||
+ ids->icon_resource_id = IDI_SHELL_TRASH_FILE;
|
||||
+ ids->caption_resource_id = IDS_DELETEFOLDER_CAPTION;
|
||||
+ ids->text_resource_id = IDS_TRASHFOLDER_TEXT;
|
||||
+ return TRUE;
|
||||
+ case ASK_TRASH_MULTIPLE_ITEM:
|
||||
+ ids->icon_resource_id = IDI_SHELL_TRASH_FILE;
|
||||
+ ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
+ ids->text_resource_id = IDS_TRASHMULTIPLE_TEXT;
|
||||
+ return TRUE;
|
||||
+ case ASK_CANT_TRASH_ITEM:
|
||||
+ ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
|
||||
+ ids->caption_resource_id = IDS_DELETEITEM_CAPTION;
|
||||
+ ids->text_resource_id = IDS_CANTTRASH_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;
|
||||
+ ids->caption_resource_id = IDS_OVERWRITEFILE_CAPTION;
|
||||
+ ids->text_resource_id = IDS_OVERWRITEFILE_TEXT;
|
||||
+ return TRUE;
|
||||
+ case ASK_OVERWRITE_FOLDER:
|
||||
+ ids->hIconInstance = NULL;
|
||||
+ ids->icon_resource_id = IDI_WARNING;
|
||||
+ ids->caption_resource_id = IDS_OVERWRITEFILE_CAPTION;
|
||||
+ ids->text_resource_id = IDS_OVERWRITEFOLDER_TEXT;
|
||||
+ return TRUE;
|
||||
+ default:
|
||||
+ FIXME(" Unhandled nKindOfDialog %d stub\n", nKindOfDialog);
|
||||
+ }
|
||||
@@ -132,28 +150,23 @@ index c18a3e9..91d5781 100644
|
||||
- assert(nKindOfDialog >= 0 && nKindOfDialog < 32);
|
||||
- if (op && (op->dwYesToAllMask & (1 << nKindOfDialog)))
|
||||
- return TRUE;
|
||||
-
|
||||
- if (!SHELL_ConfirmIDs(nKindOfDialog, &ids)) return FALSE;
|
||||
-
|
||||
- LoadStringW(shell32_hInstance, ids.caption_resource_id, szCaption, ARRAY_SIZE(szCaption));
|
||||
- LoadStringW(shell32_hInstance, ids.text_resource_id, szText, ARRAY_SIZE(szText));
|
||||
-
|
||||
- args[0] = (DWORD_PTR)szDir;
|
||||
- FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ARGUMENT_ARRAY,
|
||||
- szText, 0, 0, szBuffer, ARRAY_SIZE(szBuffer), (__ms_va_list*)args);
|
||||
-
|
||||
- hIcon = LoadIconW(ids.hIconInstance, (LPWSTR)MAKEINTRESOURCE(ids.icon_resource_id));
|
||||
+ WCHAR szCaption[255], szText[255], szBuffer[MAX_PATH + 256];
|
||||
+ SHELL_ConfirmIDstruc ids;
|
||||
+ DWORD_PTR args[1];
|
||||
+ HICON hIcon;
|
||||
+ int ret;
|
||||
|
||||
- if (!SHELL_ConfirmIDs(nKindOfDialog, &ids)) return FALSE;
|
||||
+ assert(nKindOfDialog >= 0 && nKindOfDialog < 32);
|
||||
+ if (op && (op->dwYesToAllMask & (1 << nKindOfDialog)))
|
||||
+ return TRUE;
|
||||
|
||||
- LoadStringW(shell32_hInstance, ids.caption_resource_id, szCaption, sizeof(szCaption)/sizeof(WCHAR));
|
||||
- LoadStringW(shell32_hInstance, ids.text_resource_id, szText, sizeof(szText)/sizeof(WCHAR));
|
||||
+ if (!SHELL_ConfirmIDs(nKindOfDialog, &ids)) return FALSE;
|
||||
|
||||
- args[0] = (DWORD_PTR)szDir;
|
||||
- FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ARGUMENT_ARRAY,
|
||||
- szText, 0, 0, szBuffer, sizeof(szBuffer)/sizeof(szBuffer[0]), (__ms_va_list*)args);
|
||||
- hIcon = LoadIconW(ids.hIconInstance, (LPWSTR)MAKEINTRESOURCE(ids.icon_resource_id));
|
||||
+ LoadStringW(shell32_hInstance, ids.caption_resource_id, szCaption, sizeof(szCaption)/sizeof(WCHAR));
|
||||
+ LoadStringW(shell32_hInstance, ids.text_resource_id, szText, sizeof(szText)/sizeof(WCHAR));
|
||||
|
||||
- ret = SHELL_ConfirmMsgBox(hWnd, szBuffer, szCaption, hIcon, op && op->bManyItems);
|
||||
- if (op) {
|
||||
- if (ret == IDD_YESTOALL) {
|
||||
@@ -164,9 +177,20 @@ index c18a3e9..91d5781 100644
|
||||
- op->bCancelled = TRUE;
|
||||
- if (ret != IDYES)
|
||||
- op->req->fAnyOperationsAborted = TRUE;
|
||||
- }
|
||||
- return ret == IDYES;
|
||||
+ assert(nKindOfDialog >= 0 && nKindOfDialog < 32);
|
||||
+ if (op && (op->dwYesToAllMask & (1 << nKindOfDialog)))
|
||||
+ return TRUE;
|
||||
+
|
||||
+ if (!SHELL_ConfirmIDs(nKindOfDialog, &ids)) return FALSE;
|
||||
+
|
||||
+ LoadStringW(shell32_hInstance, ids.caption_resource_id, szCaption, ARRAY_SIZE(szCaption));
|
||||
+ LoadStringW(shell32_hInstance, ids.text_resource_id, szText, ARRAY_SIZE(szText));
|
||||
+
|
||||
+ args[0] = (DWORD_PTR)szDir;
|
||||
+ FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ARGUMENT_ARRAY,
|
||||
+ szText, 0, 0, szBuffer, sizeof(szBuffer)/sizeof(szBuffer[0]), (__ms_va_list*)args);
|
||||
+ szText, 0, 0, szBuffer, ARRAY_SIZE(szBuffer), (__ms_va_list*)args);
|
||||
+ hIcon = LoadIconW(ids.hIconInstance, (LPWSTR)MAKEINTRESOURCE(ids.icon_resource_id));
|
||||
+
|
||||
+ ret = SHELL_ConfirmMsgBox(hWnd, szBuffer, szCaption, hIcon, op && op->bManyItems);
|
||||
@@ -174,8 +198,7 @@ index c18a3e9..91d5781 100644
|
||||
+ if (ret == IDD_YESTOALL) {
|
||||
+ op->dwYesToAllMask |= (1 << nKindOfDialog);
|
||||
+ ret = IDYES;
|
||||
}
|
||||
- return ret == IDYES;
|
||||
+ }
|
||||
+ if (ret == IDCANCEL)
|
||||
+ op->bCancelled = TRUE;
|
||||
+ if (ret != IDYES)
|
||||
@@ -185,7 +208,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
BOOL SHELL_ConfirmYesNoW(HWND hWnd, int nKindOfDialog, LPCWSTR szDir)
|
||||
@@ -317,18 +317,18 @@ BOOL SHELL_ConfirmYesNoW(HWND hWnd, int nKindOfDialog, LPCWSTR szDir)
|
||||
@@ -318,18 +317,18 @@ BOOL SHELL_ConfirmYesNoW(HWND hWnd, int nKindOfDialog, LPCWSTR szDir)
|
||||
|
||||
static DWORD SHELL32_AnsiToUnicodeBuf(LPCSTR aPath, LPWSTR *wPath, DWORD minChars)
|
||||
{
|
||||
@@ -216,7 +239,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
HRESULT WINAPI SHIsFileAvailableOffline(LPCWSTR path, LPDWORD status)
|
||||
@@ -371,8 +371,8 @@ static DWORD SHELL_DeleteDirectoryW(HWND hwnd, LPCWSTR pszDir, BOOL bShowUI)
|
||||
@@ -372,8 +371,8 @@ static DWORD SHELL_DeleteDirectoryW(HWND hwnd, LPCWSTR pszDir, BOOL bShowUI)
|
||||
ret = SHNotifyRemoveDirectoryW(pszDir);
|
||||
|
||||
return ret == ERROR_PATH_NOT_FOUND ?
|
||||
@@ -227,7 +250,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
@@ -392,41 +392,41 @@ static DWORD SHELL_DeleteDirectoryW(HWND hwnd, LPCWSTR pszDir, BOOL bShowUI)
|
||||
@@ -393,41 +392,41 @@ static DWORD SHELL_DeleteDirectoryW(HWND hwnd, LPCWSTR pszDir, BOOL bShowUI)
|
||||
*/
|
||||
static DWORD SHNotifyCreateDirectoryA(LPCSTR path, LPSECURITY_ATTRIBUTES sec)
|
||||
{
|
||||
@@ -292,7 +315,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
@@ -446,51 +446,51 @@ BOOL WINAPI Win32CreateDirectoryAW(LPCVOID path, LPSECURITY_ATTRIBUTES sec)
|
||||
@@ -447,51 +446,51 @@ BOOL WINAPI Win32CreateDirectoryAW(LPCVOID path, LPSECURITY_ATTRIBUTES sec)
|
||||
*/
|
||||
static DWORD SHNotifyRemoveDirectoryA(LPCSTR path)
|
||||
{
|
||||
@@ -377,7 +400,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
@@ -510,52 +510,52 @@ BOOL WINAPI Win32RemoveDirectoryAW(LPCVOID path)
|
||||
@@ -511,52 +510,52 @@ BOOL WINAPI Win32RemoveDirectoryAW(LPCVOID path)
|
||||
*/
|
||||
static DWORD SHNotifyDeleteFileA(LPCSTR path)
|
||||
{
|
||||
@@ -464,7 +487,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
@@ -572,36 +572,36 @@ DWORD WINAPI Win32DeleteFileAW(LPCVOID path)
|
||||
@@ -573,36 +572,36 @@ DWORD WINAPI Win32DeleteFileAW(LPCVOID path)
|
||||
*/
|
||||
static DWORD SHNotifyMoveFileW(LPCWSTR src, LPCWSTR dest)
|
||||
{
|
||||
@@ -531,7 +554,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
@@ -620,24 +620,24 @@ static DWORD SHNotifyMoveFileW(LPCWSTR src, LPCWSTR dest)
|
||||
@@ -621,24 +620,24 @@ static DWORD SHNotifyMoveFileW(LPCWSTR src, LPCWSTR dest)
|
||||
*/
|
||||
static DWORD SHNotifyCopyFileW(LPCWSTR src, LPCWSTR dest, BOOL bFailIfExists)
|
||||
{
|
||||
@@ -570,7 +593,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
@@ -667,9 +667,9 @@ static DWORD SHNotifyCopyFileW(LPCWSTR src, LPCWSTR dest, BOOL bFailIfExists)
|
||||
@@ -668,9 +667,9 @@ static DWORD SHNotifyCopyFileW(LPCWSTR src, LPCWSTR dest, BOOL bFailIfExists)
|
||||
*/
|
||||
DWORD WINAPI SHCreateDirectory(HWND hWnd, LPCVOID path)
|
||||
{
|
||||
@@ -583,7 +606,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
@@ -706,18 +706,18 @@ DWORD WINAPI SHCreateDirectory(HWND hWnd, LPCVOID path)
|
||||
@@ -707,18 +706,18 @@ DWORD WINAPI SHCreateDirectory(HWND hWnd, LPCVOID path)
|
||||
*/
|
||||
int WINAPI SHCreateDirectoryExA(HWND hWnd, LPCSTR path, LPSECURITY_ATTRIBUTES sec)
|
||||
{
|
||||
@@ -614,7 +637,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
@@ -727,49 +727,49 @@ int WINAPI SHCreateDirectoryExA(HWND hWnd, LPCSTR path, LPSECURITY_ATTRIBUTES se
|
||||
@@ -728,49 +727,49 @@ int WINAPI SHCreateDirectoryExA(HWND hWnd, LPCSTR path, LPSECURITY_ATTRIBUTES se
|
||||
*/
|
||||
int WINAPI SHCreateDirectoryExW(HWND hWnd, LPCWSTR path, LPSECURITY_ATTRIBUTES sec)
|
||||
{
|
||||
@@ -707,7 +730,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
@@ -789,25 +789,25 @@ int WINAPI SHCreateDirectoryExW(HWND hWnd, LPCWSTR path, LPSECURITY_ATTRIBUTES s
|
||||
@@ -790,25 +789,25 @@ int WINAPI SHCreateDirectoryExW(HWND hWnd, LPCWSTR path, LPSECURITY_ATTRIBUTES s
|
||||
*/
|
||||
static DWORD SHFindAttrW(LPCWSTR pName, BOOL fileOnly)
|
||||
{
|
||||
@@ -752,7 +775,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
@@ -821,27 +821,27 @@ static DWORD SHFindAttrW(LPCWSTR pName, BOOL fileOnly)
|
||||
@@ -822,27 +821,27 @@ static DWORD SHFindAttrW(LPCWSTR pName, BOOL fileOnly)
|
||||
*/
|
||||
static DWORD SHNameTranslate(LPWSTR* wString, LPCWSTR* pWToFrom, BOOL more)
|
||||
{
|
||||
@@ -801,7 +824,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
/*************************************************************************
|
||||
* SHFileOperationA [SHELL32.@]
|
||||
@@ -861,42 +861,42 @@ static DWORD SHNameTranslate(LPWSTR* wString, LPCWSTR* pWToFrom, BOOL more)
|
||||
@@ -862,42 +861,42 @@ static DWORD SHNameTranslate(LPWSTR* wString, LPCWSTR* pWToFrom, BOOL more)
|
||||
*/
|
||||
int WINAPI SHFileOperationA(LPSHFILEOPSTRUCTA lpFileOp)
|
||||
{
|
||||
@@ -880,7 +903,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
#define ERROR_SHELL_INTERNAL_FILE_NOT_FOUND 1026
|
||||
@@ -926,7 +926,7 @@ typedef struct
|
||||
@@ -927,7 +926,7 @@ typedef struct
|
||||
static inline void grow_list(FILE_LIST *list)
|
||||
{
|
||||
FILE_ENTRY *new = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, list->feFiles,
|
||||
@@ -889,7 +912,7 @@ index c18a3e9..91d5781 100644
|
||||
list->feFiles = new;
|
||||
list->num_alloc *= 2;
|
||||
}
|
||||
@@ -1018,7 +1018,7 @@ static HRESULT parse_file_list(FILE_LIST *flList, LPCWSTR szFiles)
|
||||
@@ -1019,7 +1018,7 @@ static HRESULT parse_file_list(FILE_LIST *flList, LPCWSTR szFiles)
|
||||
/* empty list */
|
||||
if (!szFiles[0])
|
||||
return ERROR_ACCESS_DENIED;
|
||||
@@ -898,7 +921,7 @@ index c18a3e9..91d5781 100644
|
||||
flList->feFiles = heap_alloc_zero(flList->num_alloc * sizeof(FILE_ENTRY));
|
||||
|
||||
while (*ptr)
|
||||
@@ -1121,7 +1121,7 @@ static void copy_dir_to_dir(FILE_OPERATION *op, const FILE_ENTRY *feFrom, LPCWST
|
||||
@@ -1122,7 +1121,7 @@ static void copy_dir_to_dir(FILE_OPERATION *op, const FILE_ENTRY *feFrom, LPCWST
|
||||
/* Don't ask the user about overwriting files when he accepted to overwrite the
|
||||
folder. FIXME: this is not exactly what Windows does - e.g. there would be
|
||||
an additional confirmation for a nested folder */
|
||||
@@ -907,7 +930,7 @@ index c18a3e9..91d5781 100644
|
||||
|
||||
SHFileOperationW(&fileOp);
|
||||
}
|
||||
@@ -1334,7 +1334,7 @@ static int delete_files(LPSHFILEOPSTRUCTW lpFileOp, const FILE_LIST *flFrom)
|
||||
@@ -1335,7 +1334,7 @@ static int delete_files(LPSHFILEOPSTRUCTW lpFileOp, const FILE_LIST *flFrom)
|
||||
|
||||
/* Windows also checks only the first item */
|
||||
bTrash = (lpFileOp->fFlags & FOF_ALLOWUNDO)
|
||||
@@ -916,7 +939,7 @@ index c18a3e9..91d5781 100644
|
||||
|
||||
if (!(lpFileOp->fFlags & FOF_NOCONFIRMATION) || (!bTrash && lpFileOp->fFlags & FOF_WANTNUKEWARNING))
|
||||
if (!confirm_delete_list(lpFileOp->hwnd, lpFileOp->fFlags, bTrash, flFrom))
|
||||
@@ -1369,11 +1369,11 @@ static int delete_files(LPSHFILEOPSTRUCTW lpFileOp, const FILE_LIST *flFrom)
|
||||
@@ -1370,11 +1369,11 @@ static int delete_files(LPSHFILEOPSTRUCTW lpFileOp, const FILE_LIST *flFrom)
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -930,7 +953,7 @@ index c18a3e9..91d5781 100644
|
||||
else
|
||||
ret = SHELL_DeleteDirectoryW(lpFileOp->hwnd, fileEntry->szFullPath, FALSE);
|
||||
|
||||
@@ -1498,8 +1498,8 @@ static int rename_files(LPSHFILEOPSTRUCTW lpFileOp, const FILE_LIST *flFrom, con
|
||||
@@ -1499,8 +1498,8 @@ static int rename_files(LPSHFILEOPSTRUCTW lpFileOp, const FILE_LIST *flFrom, con
|
||||
static void check_flags(FILEOP_FLAGS fFlags)
|
||||
{
|
||||
WORD wUnsupportedFlags = FOF_NO_CONNECTED_ELEMENTS |
|
||||
@@ -941,7 +964,7 @@ index c18a3e9..91d5781 100644
|
||||
|
||||
if (fFlags & wUnsupportedFlags)
|
||||
FIXME("Unsupported flags: %04x\n", fFlags);
|
||||
@@ -1582,19 +1582,19 @@ int WINAPI SHFileOperationW(LPSHFILEOPSTRUCTW lpFileOp)
|
||||
@@ -1583,19 +1582,19 @@ int WINAPI SHFileOperationW(LPSHFILEOPSTRUCTW lpFileOp)
|
||||
*/
|
||||
void WINAPI SHFreeNameMappings(HANDLE hNameMapping)
|
||||
{
|
||||
@@ -971,7 +994,7 @@ index c18a3e9..91d5781 100644
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
@@ -1700,14 +1700,14 @@ DWORD WINAPI SheChangeDirW(LPWSTR path)
|
||||
@@ -1701,14 +1700,14 @@ DWORD WINAPI SheChangeDirW(LPWSTR path)
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
Reference in New Issue
Block a user