Commit 4deb0ada authored by Alexandre Julliard's avatar Alexandre Julliard

urlmon/tests: Fix an uninitialized variable check for Win64.

parent 10b2d6db
...@@ -1305,18 +1305,20 @@ static void test_ReleaseBindInfo(void) ...@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment