[PATCH] kernel32: Check dwFlags parameter in QueryFullProcessImageNameW().

Dmitry Timoshkov dmitry at baikal.ru
Thu Aug 1 06:17:14 CDT 2019


Serge Gautherie <winehq-git_serge_180711 at gautherie.fr> wrote:

> @@ -4030,6 +4030,12 @@ BOOL WINAPI QueryFullProcessImageNameW(HANDLE hProcess, DWORD dwFlags, LPWSTR lp
>      NTSTATUS status;
>      DWORD needed;
>  
> +    if (dwFlags >= 2)
> +    {
> +        SetLastError(ERROR_INVALID_PARAMETER);
> +        return FALSE;
> +    }

What does that mean? Is there an application that depends on this? If you
don't know, then it's better to not add anything like this.

-- 
Dmitry.



More information about the wine-devel mailing list