Module: wine Branch: master Commit: dc8ea1b3e4839df0f33c93eb85cde1db55ac905f URL: http://source.winehq.org/git/wine.git/?a=commit;h=dc8ea1b3e4839df0f33c93eb85...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Tue Dec 16 16:42:50 2008 +0100
jscript/tests: Fix test failures on Win9x.
---
dlls/jscript/tests/run.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/jscript/tests/run.c b/dlls/jscript/tests/run.c index 926e45e..81de579 100644 --- a/dlls/jscript/tests/run.c +++ b/dlls/jscript/tests/run.c @@ -75,7 +75,9 @@ DEFINE_EXPECT(GetItemInfo_testVal); #define DISPID_GLOBAL_TESTOBJ 0x1006
static const WCHAR testW[] = {'t','e','s','t',0}; +static const CHAR testA[] = "test"; static const WCHAR test_valW[] = {'t','e','s','t','V','a','l',0}; +static const CHAR test_valA[] = "testVal";
static BOOL strict_dispid_check; static const char *test_name = "(null)"; @@ -490,9 +492,9 @@ static HRESULT WINAPI ActiveScriptSite_GetItemInfo(IActiveScriptSite *iface, LPC ok(dwReturnMask == SCRIPTINFO_IUNKNOWN, "unexpected dwReturnMask %x\n", dwReturnMask); ok(!ppti, "ppti != NULL\n");
- if(!lstrcmpW(pstrName, test_valW)) + if(!strcmp_wa(pstrName, test_valA)) CHECK_EXPECT(GetItemInfo_testVal); - else if(lstrcmpW(pstrName, testW)) + else if(strcmp_wa(pstrName, testA)) ok(0, "unexpected pstrName %s\n", debugstr_w(pstrName));
*ppiunkItem = (IUnknown*)&Global;