Module: wine Branch: master Commit: d3f20ec1367055a59d3c13de8665fed8eb9bb112 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d3f20ec1367055a59d3c13de86...
Author: Alistair Leslie-Hughes leslie_alistair@hotmail.com Date: Tue Dec 8 21:49:40 2009 +1100
shdocvw: Fix test for non-english IE MUI.
---
dlls/shdocvw/tests/webbrowser.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/shdocvw/tests/webbrowser.c b/dlls/shdocvw/tests/webbrowser.c index fba30be..cd82924 100644 --- a/dlls/shdocvw/tests/webbrowser.c +++ b/dlls/shdocvw/tests/webbrowser.c @@ -1818,7 +1818,10 @@ static void test_ie_funcs(IUnknown *unk) /* Name */ hres = IWebBrowser2_get_Name(wb, &sName); ok(hres == S_OK, "getName failed: %08x, expected S_OK\n", hres); - ok(!strcmp_wa(sName, "Microsoft Web Browser Control"), "got '%s', expected 'Microsoft Web Browser Control'\n", wine_dbgstr_w(sName)); + if (PRIMARYLANGID(LANGIDFROMLCID(GetThreadLocale())) == LANG_ENGLISH) + ok(!strcmp_wa(sName, "Microsoft Web Browser Control"), "got '%s', expected 'Microsoft Web Browser Control'\n", wine_dbgstr_w(sName)); + else /* Non-English cannot be blank. */ + ok(sName!=NULL, "get_Name return a NULL string.\n"); SysFreeString(sName);
/* Quit */