Alexandre Julliard : urlmon/tests: Fix an uninitialized variable check for Win64.
Alexandre Julliard
julliard at winehq.org
Mon Jan 5 10:24:33 CST 2009
Module: wine
Branch: master
Commit: 4deb0ada754448ef91183bfcfa9950e5f97ddf3d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4deb0ada754448ef91183bfcfa9950e5f97ddf3d
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Jan 5 15:20:15 2009 +0100
urlmon/tests: Fix an uninitialized variable check for Win64.
---
dlls/urlmon/tests/misc.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/urlmon/tests/misc.c b/dlls/urlmon/tests/misc.c
index 6d3305e..1de010d 100644
--- a/dlls/urlmon/tests/misc.c
+++ b/dlls/urlmon/tests/misc.c
@@ -1305,18 +1305,20 @@ static void test_ReleaseBindInfo(void)
static void test_CopyStgMedium(void)
{
STGMEDIUM src, dst;
+ HGLOBAL empty;
HRESULT hres;
static WCHAR fileW[] = {'f','i','l','e',0};
memset(&src, 0xf0, sizeof(src));
memset(&dst, 0xe0, sizeof(dst));
+ memset(&empty, 0xf0, sizeof(empty));
src.tymed = TYMED_NULL;
src.pUnkForRelease = NULL;
hres = CopyStgMedium(&src, &dst);
ok(hres == S_OK, "CopyStgMedium failed: %08x\n", hres);
ok(dst.tymed == TYMED_NULL, "tymed=%d\n", dst.tymed);
- ok(dst.u.hGlobal == (void*)0xf0f0f0f0, "u=%p\n", dst.u.hGlobal);
+ ok(dst.u.hGlobal == empty, "u=%p\n", dst.u.hGlobal);
ok(!dst.pUnkForRelease, "pUnkForRelease=%p, expected NULL\n", dst.pUnkForRelease);
memset(&dst, 0xe0, sizeof(dst));
More information about the wine-cvs
mailing list