urlmon/tests: Fix an uninitialized variable check for Win64.
This commit is contained in:
parent
10b2d6db04
commit
4deb0ada75
|
@ -1305,18 +1305,20 @@ static void test_ReleaseBindInfo(void)
|
||||||
static void test_CopyStgMedium(void)
|
static void test_CopyStgMedium(void)
|
||||||
{
|
{
|
||||||
STGMEDIUM src, dst;
|
STGMEDIUM src, dst;
|
||||||
|
HGLOBAL empty;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
|
||||||
static WCHAR fileW[] = {'f','i','l','e',0};
|
static WCHAR fileW[] = {'f','i','l','e',0};
|
||||||
|
|
||||||
memset(&src, 0xf0, sizeof(src));
|
memset(&src, 0xf0, sizeof(src));
|
||||||
memset(&dst, 0xe0, sizeof(dst));
|
memset(&dst, 0xe0, sizeof(dst));
|
||||||
|
memset(&empty, 0xf0, sizeof(empty));
|
||||||
src.tymed = TYMED_NULL;
|
src.tymed = TYMED_NULL;
|
||||||
src.pUnkForRelease = NULL;
|
src.pUnkForRelease = NULL;
|
||||||
hres = CopyStgMedium(&src, &dst);
|
hres = CopyStgMedium(&src, &dst);
|
||||||
ok(hres == S_OK, "CopyStgMedium failed: %08x\n", hres);
|
ok(hres == S_OK, "CopyStgMedium failed: %08x\n", hres);
|
||||||
ok(dst.tymed == TYMED_NULL, "tymed=%d\n", dst.tymed);
|
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);
|
ok(!dst.pUnkForRelease, "pUnkForRelease=%p, expected NULL\n", dst.pUnkForRelease);
|
||||||
|
|
||||||
memset(&dst, 0xe0, sizeof(dst));
|
memset(&dst, 0xe0, sizeof(dst));
|
||||||
|
|
Loading…
Reference in New Issue