wininet: Fix initialization in test_cert_struct.

Gerald Pfeifer gerald at pfeifer.com
Sat Aug 18 17:41:48 CDT 2012


This looks like a real bug.  The first entry of the underlying
type INTERNET_CERTIFICATE_INFOA is FILETIME ftExpiry, and only
initializing this one, and in that manner, does not make sense.

Gerald

---
 dlls/wininet/tests/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index acbaf2e..c4db996 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -2945,7 +2945,7 @@ static void test_cert_struct(HINTERNET req)
         "test.winehq.org\r\n"
         "webmaster at winehq.org";
 
-    memset(&info, 0x5, sizeof(&info));
+    memset(&info, 0x5, sizeof(info));
 
     size = sizeof(info);
     res = InternetQueryOption(req, INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT, &info, &size);
-- 
1.7.11.1



More information about the wine-patches mailing list