mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 20:40:30 +00:00
comcat/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8c7d53a5b0
commit
cd4c58f588
|
@ -1,4 +1,3 @@
|
||||||
EXTRADEFS = -DWINE_NO_LONG_TYPES
|
|
||||||
TESTDLL = comcat.dll
|
TESTDLL = comcat.dll
|
||||||
IMPORTS = ole32 advapi32
|
IMPORTS = ole32 advapi32
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
#include "wine/test.h"
|
#include "wine/test.h"
|
||||||
|
|
||||||
#define ok_ole_success(hr, func) ok(hr == S_OK, func " failed with error 0x%08x\n", hr)
|
#define ok_ole_success(hr, func) ok(hr == S_OK, func " failed with error %#08lx\n", hr)
|
||||||
|
|
||||||
static BOOL register_testentry(void)
|
static BOOL register_testentry(void)
|
||||||
{
|
{
|
||||||
|
@ -88,8 +88,8 @@ static void do_enum(void)
|
||||||
ok_ole_success(hr,"ICatInformation_EnumClassesOfCategories");
|
ok_ole_success(hr,"ICatInformation_EnumClassesOfCategories");
|
||||||
|
|
||||||
hr = IEnumGUID_Next(pIEnum,1,the_guid, &fetched);
|
hr = IEnumGUID_Next(pIEnum,1,the_guid, &fetched);
|
||||||
ok (hr == S_FALSE,"Expected S_FALSE, got 0x%08x\n", hr);
|
ok (hr == S_FALSE,"Expected S_FALSE, got 0x%08lx\n", hr);
|
||||||
ok (fetched == 0,"Fetched wrong number of guids %u\n",fetched);
|
ok (fetched == 0,"Fetched wrong number of guids %lu\n",fetched);
|
||||||
IEnumGUID_Release(pIEnum);
|
IEnumGUID_Release(pIEnum);
|
||||||
|
|
||||||
if (register_testentry())
|
if (register_testentry())
|
||||||
|
@ -98,8 +98,8 @@ static void do_enum(void)
|
||||||
ok_ole_success(hr,"ICatInformation_EnumClassesOfCategories");
|
ok_ole_success(hr,"ICatInformation_EnumClassesOfCategories");
|
||||||
|
|
||||||
hr = IEnumGUID_Next(pIEnum,1,the_guid, &fetched);
|
hr = IEnumGUID_Next(pIEnum,1,the_guid, &fetched);
|
||||||
ok (hr == S_OK,"Expected S_OK, got 0x%08x\n", hr);
|
ok (hr == S_OK,"Expected S_OK, got 0x%08lx\n", hr);
|
||||||
ok (fetched == 1,"Fetched wrong number of guids %u\n",fetched);
|
ok (fetched == 1,"Fetched wrong number of guids %lu\n",fetched);
|
||||||
ok (IsEqualGUID(the_guid,&wanted_guid),"Guids do not match\n");
|
ok (IsEqualGUID(the_guid,&wanted_guid),"Guids do not match\n");
|
||||||
|
|
||||||
IEnumGUID_Release(pIEnum);
|
IEnumGUID_Release(pIEnum);
|
||||||
|
|
Loading…
Reference in a new issue