infosoft/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:
Eric Pouech 2022-02-28 08:26:57 +01:00 committed by Alexandre Julliard
parent 34c2e56d1b
commit 7ebbc4f8cd
2 changed files with 6 additions and 7 deletions

View file

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = infosoft.dll TESTDLL = infosoft.dll
IMPORTS = ole32 IMPORTS = ole32

View file

@ -76,10 +76,10 @@ static HRESULT WINAPI ws_PutWord(IWordSink *iface, ULONG cwc, const WCHAR *pwcIn
winetest_push_context("word %d", wordnum); winetest_push_context("word %d", wordnum);
if (wordnum < ARRAY_SIZE(testres)) if (wordnum < ARRAY_SIZE(testres))
{ {
ok(testres[wordnum].len == cwcSrcLen, "expected length %d, got %d\n", ok(testres[wordnum].len == cwcSrcLen, "expected length %d, got %ld\n",
testres[wordnum].len, cwcSrcLen); testres[wordnum].len, cwcSrcLen);
ok(!cwcSrcPos || (testres[wordnum].ofs == cwcSrcPos), ok(!cwcSrcPos || (testres[wordnum].ofs == cwcSrcPos),
"expected offset %d, got %d\n", testres[wordnum].ofs, cwcSrcPos); "expected offset %d, got %ld\n", testres[wordnum].ofs, cwcSrcPos);
ok(!memcmp(testres[wordnum].data, pwcInBuf, cwcSrcLen), ok(!memcmp(testres[wordnum].data, pwcInBuf, cwcSrcLen),
"expected data %s, got %s\n", "expected data %s, got %s\n",
wine_dbgstr_wn(testres[wordnum].data, cwcSrcLen), wine_dbgstr_wn(testres[wordnum].data, cwcSrcLen),
@ -176,7 +176,7 @@ START_TEST(infosoft)
TEXT_SOURCE ts; TEXT_SOURCE ts;
r = CoInitialize(NULL); r = CoInitialize(NULL);
ok( r == S_OK, "failed: %08x\n", r); ok( r == S_OK, "failed: %08lx\n", r);
r = CoCreateInstance( &CLSID_wb_neutral, NULL, CLSCTX_INPROC_SERVER, r = CoCreateInstance( &CLSID_wb_neutral, NULL, CLSCTX_INPROC_SERVER,
&_IID_IWordBreaker, (LPVOID)&wb); &_IID_IWordBreaker, (LPVOID)&wb);
@ -194,7 +194,7 @@ START_TEST(infosoft)
ts.iEnd = lstrlenW(ts.awcBuffer); ts.iEnd = lstrlenW(ts.awcBuffer);
ts.iCur = 0; ts.iCur = 0;
r = IWordBreaker_BreakText(wb, &ts, &wordsink.IWordSink_iface, NULL); r = IWordBreaker_BreakText(wb, &ts, &wordsink.IWordSink_iface, NULL);
ok( r == S_OK, "failed: %08x\n", r); ok( r == S_OK, "failed: %08lx\n", r);
ok(wordnum == 4, "expected 4 words, got %d\n", wordnum); ok(wordnum == 4, "expected 4 words, got %d\n", wordnum);
@ -205,10 +205,10 @@ START_TEST(infosoft)
ts.iCur = 0; ts.iCur = 0;
r = fillbuf_many(&ts); r = fillbuf_many(&ts);
ok( r == S_OK, "failed: %08x\n", r); ok( r == S_OK, "failed: %08lx\n", r);
r = IWordBreaker_BreakText(wb, &ts, &wordsink.IWordSink_iface, NULL); r = IWordBreaker_BreakText(wb, &ts, &wordsink.IWordSink_iface, NULL);
ok( r == S_OK, "failed: %08x\n", r); ok( r == S_OK, "failed: %08lx\n", r);
ok(wordnum == 4, "expected 4 words, got %d\n", wordnum); ok(wordnum == 4, "expected 4 words, got %d\n", wordnum);
IWordBreaker_Release( wb ); IWordBreaker_Release( wb );