user32: Add a test for GetClassInfo, make it pass under Wine.

Paul Vriens paul.vriens.wine at gmail.com
Thu Jul 29 02:20:49 CDT 2010


On 07/29/2010 08:55 AM, Dmitry Timoshkov wrote:
> +    SetLastError(0xdeadbeef);
> +    ret = GetClassInfoEx(0, "static", NULL);

Why not the explicit A-function? I see there is already an existing call 
in the current tests, but still.

> +    ok(!ret, "GetClassInfoEx() should fail\n");
> +    ok(GetLastError() == ERROR_NOACCESS, "expected ERROR_NOACCESS, got %d\n", GetLastError());
> +
> +    SetLastError(0xdeadbeef);
> +    ret = GetClassInfoExW(0, staticW, NULL);
> +    ok(!ret, "GetClassInfoExW() should fail\n");
> +    ok(GetLastError() == ERROR_NOACCESS ||
> +       GetLastError() == ERROR_CALL_NOT_IMPLEMENTED, /* win9x */

Wouldn't broken() be more appropriate?

-- 
Cheers,

Paul.



More information about the wine-devel mailing list