Commit 739c5192 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

mapi32/tests: Enable compilation with long types.

parent 74ea2921
EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = mapi32.dll
IMPORTS = advapi32
......
......@@ -61,13 +61,13 @@ static void test_IMalloc(void)
lpVoid = NULL;
hRet = IMalloc_QueryInterface(lpMalloc, &IID_IUnknown, &lpVoid);
ok (hRet == S_OK && lpVoid != NULL,
"IID_IUnknown: expected S_OK, non-null, got 0x%08x, %p\n",
"IID_IUnknown: expected S_OK, non-null, got 0x%08lx, %p\n",
hRet, lpVoid);
lpVoid = NULL;
hRet = IMalloc_QueryInterface(lpMalloc, &IID_IMalloc, &lpVoid);
ok (hRet == S_OK && lpVoid != NULL,
"IID_IIMalloc: expected S_OK, non-null, got 0x%08x, %p\n",
"IID_IIMalloc: expected S_OK, non-null, got 0x%08lx, %p\n",
hRet, lpVoid);
/* Prove that native mapi uses LocalAlloc/LocalFree */
......@@ -84,10 +84,10 @@ static void test_IMalloc(void)
LocalFree(lpMem);
ulRef = IMalloc_AddRef(lpMalloc);
ok (ulRef == 1u, "AddRef expected 1, returned %d\n", ulRef);
ok (ulRef == 1u, "AddRef expected 1, returned %ld\n", ulRef);
ulRef = IMalloc_Release(lpMalloc);
ok (ulRef == 1u, "AddRef expected 1, returned %d\n", ulRef);
ok (ulRef == 1u, "AddRef expected 1, returned %ld\n", ulRef);
IMalloc_Release(lpMalloc);
}
......
......@@ -95,7 +95,7 @@ static void test_SwapPlong(void)
longs[2] = 0x20000001;
pSwapPlong(longs, 2);
ok((longs[0] == 0x0100ffff && longs[1] == 0xffff0010 && longs[2] == 0x20000001),
"Expected {0x0100ffff,0xffff0010,0x20000001}, got {0x%08x,0x%08x,0x%08x}\n",
"Expected {0x0100ffff,0xffff0010,0x20000001}, got {0x%08lx,0x%08lx,0x%08lx}\n",
longs[0], longs[1], longs[2]);
}
......@@ -160,9 +160,9 @@ static void test_UlFromSzHex(void)
}
ok(pUlFromSzHex("fF") == 0xffu,
"UlFromSzHex: expected 0xff, got 0x%x\n", pUlFromSzHex("fF"));
"UlFromSzHex: expected 0xff, got 0x%lx\n", pUlFromSzHex("fF"));
ok(pUlFromSzHex(" c") == 0, "UlFromSzHex: expected 0x0. got 0x%x\n",
ok(pUlFromSzHex(" c") == 0, "UlFromSzHex: expected 0x0. got 0x%lx\n",
pUlFromSzHex(" c"));
}
......@@ -185,7 +185,7 @@ static void test_CbOfEncoded(void)
memset(buff, '?', i);
ulRet = pCbOfEncoded(buff);
ok(ulRet == ulExpected,
"CbOfEncoded(length %d): expected %d, got %d\n",
"CbOfEncoded(length %d): expected %ld, got %ld\n",
i, ulExpected, ulRet);
}
}
......
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