[2/3] kernel32: fix QueryFullProcessImageNameW for output buffer being null

Alexandre Julliard julliard at winehq.org
Mon Jun 1 07:01:00 CDT 2009


Stefan Leichter <Stefan.Leichter at camline.com> writes:

> @@ -3155,6 +3155,12 @@
>      NTSTATUS status;
>      DWORD needed;
>  
> +    if(!lpExeName)
> +    {
> +        SetLastError(ERROR_INVALID_PARAMETER);
> +        return FALSE;
> +    }
> +

This is not correct:

../../../tools/runtest -q -P wine -M kernel32.dll -T ../../.. -p kernel32_test.exe.so process.c && touch process.ok
process.c:1670: Test failed: Expected GetLastError() to be 122 (ERROR_INSUFFICIENT_BUFFER) is 87
make[2]: *** [process.ok] Error 1

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list