mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:13:04 +00:00
[SHELL32] Handle multiple files in recycle bin delete/restore operations (#7568)
CORE-19895 CORE-19231
This commit is contained in:
parent
924592dc47
commit
e5fc4de8c9
10 changed files with 264 additions and 119 deletions
|
@ -14,6 +14,14 @@ SHStrDupW(LPCWSTR Src)
|
|||
LPWSTR Dup;
|
||||
return SUCCEEDED(SHStrDupW(Src, &Dup)) ? Dup : NULL;
|
||||
}
|
||||
|
||||
static inline UINT
|
||||
SHELL_ErrorBox(CMINVOKECOMMANDINFO &cmi, UINT Error)
|
||||
{
|
||||
if (cmi.fMask & CMIC_MASK_FLAG_NO_UI)
|
||||
return Error ? Error : ERROR_INTERNAL_ERROR;
|
||||
return SHELL_ErrorBox(cmi.hwnd, Error);
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline BOOL
|
||||
|
@ -46,7 +54,8 @@ RegSetString(HKEY hKey, LPCWSTR Name, LPCWSTR Str, DWORD Type = REG_SZ)
|
|||
return RegSetValueExW(hKey, Name, 0, Type, LPBYTE(Str), (lstrlenW(Str) + 1) * sizeof(WCHAR));
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
typedef struct
|
||||
{
|
||||
LPCSTR Verb;
|
||||
WORD CmdId;
|
||||
} CMVERBMAP;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue