Commit c88a65f2 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

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

Based on a patch by Michael Müller. Signed-off-by: 's avatarAlistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent bf0b9b97
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment