From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/dispex.c | 2 +- dlls/mshtml/tests/documentmode.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/dispex.c b/dlls/mshtml/dispex.c index 0e8d27773cc..49ed4790d94 100644 --- a/dlls/mshtml/dispex.c +++ b/dlls/mshtml/dispex.c @@ -1763,7 +1763,7 @@ HRESULT dispex_to_string(DispatchEx *dispex, BSTR *ret) { static const WCHAR prefix[8] = L"[object "; static const WCHAR suffix[] = L"]"; - WCHAR buf[ARRAY_SIZE(prefix) + 28 + ARRAY_SIZE(suffix)], *p = buf; + WCHAR buf[ARRAY_SIZE(prefix) + ARRAY_SIZE(dispex->info->desc->prototype_name) + ARRAY_SIZE(suffix)], *p = buf; compat_mode_t compat_mode = dispex_compat_mode(dispex); const char *name = dispex->info->name;
diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 13cef923018..c0c671dfdfa 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -3120,7 +3120,8 @@ sync_test("prototypes", function() { return;
function check(obj, proto, name) { - ok(Object.getPrototypeOf(obj) === proto, "unexpected " + name + " prototype object"); + var p = Object.getPrototypeOf(obj); + ok(p === proto, "unexpected " + name + " prototype object " + Object.prototype.toString.call(p)); }
check(document.implementation, DOMImplementation.prototype, "implementation");