Hans Leidekker : winhttp/tests: Initialize a variant with a known value.

Alexandre Julliard julliard at winehq.org
Mon Sep 5 13:26:22 CDT 2011


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Sep  5 11:46:15 2011 +0200

winhttp/tests: Initialize a variant with a known value.

---

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

diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index a662ef8..24478ad 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -2131,8 +2131,8 @@ static void test_IWinHttpRequest(void)
     hr = CoCreateInstance( &CLSID_WinHttpRequest, NULL, CLSCTX_INPROC_SERVER, &IID_IWinHttpRequest, (void **)&req );
     ok( hr == S_OK, "got %08x\n", hr );
 
-    VariantInit( &empty );
     V_VT( &empty ) = VT_ERROR;
+    V_ERROR( &empty ) = 0xdeadbeef;
 
     V_VT( &async ) = VT_BOOL;
     V_BOOL( &async ) = VARIANT_FALSE;




More information about the wine-cvs mailing list