[PATCH 1/1] wininet/test: Check null pointer in InternetGetSecurityInfoByURLW
Jactry Zeng
jactry92 at gmail.com
Tue Jan 9 02:28:36 CST 2018
Hi Wei,
Thanks for contribution!
I have a question about the tests:
+
+ SetLastError(0);
+ res = pInternetGetSecurityInfoByURLA(url, &chain, NULL);
+ ok_(__FILE__,line)(res && GetLastError() == 0,
+ "InternetGetSecurityInfoByURLA failed returned:
%x(%u), expected success\n", res, GetLastError());
+
+ SetLastError(0);
+ res = pInternetGetSecurityInfoByURLA(url, NULL, &flags);
+ ok_(__FILE__,line)(res && GetLastError() == 0,
+ "InternetGetSecurityInfoByURLA failed returned:
%x(%u), expected success\n", res, GetLastError());
}else {
Why not set last error as 0xdeadbeef in these two tests?
2018-01-08 15:57 GMT+08:00 Wei Xie <xiewei at deepin.com>:
>
>
>
>
--
Regards,
Jactry Zeng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20180109/12a7a3c6/attachment-0001.html>
More information about the wine-devel
mailing list