Jacek Caban : urlmon: Initialize PROTOCOLDATA structure before passing it to Switch.

Alexandre Julliard julliard at winehq.org
Fri Jun 3 14:04:41 CDT 2011


Module: wine
Branch: master
Commit: 21f74fc1bb6c8606d2ac31bcb0a8285a8f85be71
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=21f74fc1bb6c8606d2ac31bcb0a8285a8f85be71

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Jun  3 11:40:05 2011 +0200

urlmon: Initialize PROTOCOLDATA structure before passing it to Switch.

---

 dlls/urlmon/tests/url.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/urlmon/tests/url.c b/dlls/urlmon/tests/url.c
index eb4d316..8766b1d 100644
--- a/dlls/urlmon/tests/url.c
+++ b/dlls/urlmon/tests/url.c
@@ -434,7 +434,7 @@ static ULONG WINAPI Protocol_Release(IInternetProtocol *iface)
 static void test_switch_fail(void)
 {
     IInternetProtocolSink *binding_sink;
-    PROTOCOLDATA protocoldata;
+    PROTOCOLDATA protocoldata = {0};
     HRESULT hres;
 
     static BOOL tested_switch_fail;
@@ -455,7 +455,7 @@ static void test_switch_fail(void)
 
 static DWORD WINAPI thread_proc(PVOID arg)
 {
-    PROTOCOLDATA protocoldata;
+    PROTOCOLDATA protocoldata = {0};
     HRESULT hres;
 
     if(!no_callback) {




More information about the wine-cvs mailing list