Fix Win95 advapi crypt test - dlls/advapi32/tests/crypt.c

Alexandre Julliard julliard at winehq.org
Tue Mar 22 11:36:18 CST 2005


Jakob Eriksson <jakov at vmlinux.org> writes:

> --- dlls/advapi32/tests/crypt.c	15 Mar 2005 19:32:38 -0000	1.19
> +++ dlls/advapi32/tests/crypt.c	22 Mar 2005 15:31:55 -0000
> @@ -138,7 +138,10 @@
>  	hProv = 0;
>  	SetLastError(0xdeadbeef);
>  	result = pCryptAcquireContextA(&hProv, szKeySet, szRsaBaseProv, PROV_RSA_FULL, 0);
> -	ok(result && (GetLastError() == ERROR_ENVVAR_NOT_FOUND || GetLastError() == ERROR_SUCCESS || GetLastError() == ERROR_RING2_STACK_IN_USE || GetLastError() == NTE_FAIL), "%d/%ld\n", result, GetLastError());
> +	ok(result && (GetLastError() == ERROR_ENVVAR_NOT_FOUND || GetLastError() == ERROR_SUCCESS ||
> +		GetLastError() == ERROR_RING2_STACK_IN_USE || GetLastError() == NTE_FAIL ||
> +		GetLastError() == ERROR_NOT_LOGGED_ON),
> +		"%d/%ld\n", result, GetLastError());

When there are more than 2 or 3 possible last error returns, we should
simply get rid of the test. It's very unlikely that any app would rely
on the value if it's different on every Windows install.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list