shell32: Choose return value for SHFileOperationA depending on windows version.

Based on a patch by Michael Müller.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2018-05-14 02:03:15 +00:00 committed by Alexandre Julliard
parent bf0b9b97e0
commit c88a65f2ab
1 changed files with 4 additions and 0 deletions

View File

@ -882,6 +882,10 @@ int WINAPI SHFileOperationA(LPSHFILEOPSTRUCTA lpFileOp)
if (ForFree)
{
retCode = SHFileOperationW(&nFileOp);
/* Windows 95/98 returns S_OK for this case. */
if (retCode == ERROR_ACCESS_DENIED && (GetVersion() & 0x80000000))
retCode = S_OK;
heap_free(ForFree); /* we cannot use wString, it was changed */
break;
}