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:
parent
bf0b9b97e0
commit
c88a65f2ab
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue