[PATCH] shell32: Choose return value for SHFileOperationW depending on windows version

Alexandre Julliard julliard at winehq.org
Fri May 11 04:27:57 CDT 2018


Alistair Leslie-Hughes <leslie_alistair at hotmail.com> writes:

> @@ -1525,7 +1525,19 @@ int WINAPI SHFileOperationW(LPSHFILEOPSTRUCTW lpFileOp)
>      ZeroMemory(&flTo, sizeof(FILE_LIST));
>  
>      if ((ret = parse_file_list(&flFrom, lpFileOp->pFrom)))
> +    {
> +        if (ret != ERROR_ACCESS_DENIED)
> +            return ret;
> +
> +        /* Windows 95/98 */
> +        if (GetVersion() & 0x80000000)
> +            return S_OK;
> +
> +        WARN("The return value of this function call depends on the windows version.\n");
> +        WARN("For older software it might be necessary to set the windows version to 95/98 using winecfg.\n");

The W function doesn't even exist in win95, it would be better to add
that special case only to the A function.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list