kernel32/tests: add tests for GetDllDirectory (try 2)

Alexandre Julliard julliard at winehq.org
Tue Nov 8 06:48:17 CST 2011


Thomas Faber <thfabba at gmx.de> writes:

> +        /* no buffer, determine length */
> +        SetLastError(0xdeadbeef);
> +        ret = pGetDllDirectoryA(0, NULL);
> +        error = GetLastError();
> +        ok(ret == length + 1, "Expected %u, got %u\n", length + 1, ret);
> +        ok(error == 0xdeadbeef, "Error is %u\n", error);

Testing last error on success is generally not useful.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list