[PATCH v4 04/14] mshtml: Implement HTMLWindow's toString properly.
Gabriel Ivăncescu
gabrielopcode at gmail.com
Thu Oct 7 08:52:32 CDT 2021
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
dlls/mshtml/htmlwindow.c | 2 +-
dlls/mshtml/tests/documentmode.js | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c
index 2dfa879..2d4cf68 100644
--- a/dlls/mshtml/htmlwindow.c
+++ b/dlls/mshtml/htmlwindow.c
@@ -1457,7 +1457,7 @@ static HRESULT WINAPI HTMLWindow2_toString(IHTMLWindow2 *iface, BSTR *String)
if(!String)
return E_INVALIDARG;
- *String = SysAllocString(L"[object]");
+ *String = SysAllocString(L"[object Window]");
return *String ? S_OK : E_OUTOFMEMORY;
}
diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js
index 3396267..a392ae4 100644
--- a/dlls/mshtml/tests/documentmode.js
+++ b/dlls/mshtml/tests/documentmode.js
@@ -222,6 +222,7 @@ sync_test("builtin_toString", function() {
test("styleSheetRules", sheet.rules, "MSCSSRuleList");
test("styleSheets", document.styleSheets, "StyleSheetList");
test("textRange", txtRange, "TextRange");
+ test("window", window, "Window", "[object Window]");
test("xmlHttpRequest", new XMLHttpRequest(), "XMLHttpRequest");
if(v < 10) {
test("namespaces", document.namespaces, "MSNamespaceInfoCollection");
--
2.31.1
More information about the wine-devel
mailing list