Because last error not set as 0 in vista and w2008, but others do it. If set last error as 0xdeadbeef in these two tests, the test will failed<br>https://testbot.winehq.org/JobDetails.pl?Key=35144<br> <br>------------------ Original ------------------<br>From:  "Jactry Zeng"<jactry92@gmail.com>;<br>Date:  Tue, Jan 9, 2018 04:28 PM<br>To:  "Wei Xie"<xiewei@deepin.com>;<br>Cc:  "wine-devel"<wine-devel@winehq.org>;<br>Subject:  Re: [PATCH 1/1] wininet/test: Check null pointer in InternetGetSecurityInfoByURLW<br> <br>Hi Wei,<br><br>Thanks for contribution!<br>I have a question about the tests:<br><br>+<br>+        SetLastError(0);<br>+        res = pInternetGetSecurityInfoByURLA(url, &chain, NULL);<br>+        ok_(__FILE__,line)(res && GetLastError() == 0,<br>+                           "InternetGetSecurityInfoByURLA failed returned: %x(%u), expected success\n", res, GetLastError());<br>+<br>+        SetLastError(0);<br>+        res = pInternetGetSecurityInfoByURLA(url, NULL, &flags);<br>+        ok_(__FILE__,line)(res && GetLastError() == 0,<br>+                           "InternetGetSecurityInfoByURLA failed returned: %x(%u), expected success\n", res, GetLastError());<br>     }else {<br><br>Why not set last error as 0xdeadbeef in these two tests?<br><br><br>2018-01-08 15:57 GMT+08:00 Wei Xie <xiewei@deepin.com>:<br><br><br><br><br><br><br>-- <br>Regards,<br>Jactry Zeng<!--<![endif]-->