[PATCH 03/14] mshtml: Return false when removing a read-only builtin attribute rather than throwing.

Gabriel Ivăncescu gabrielopcode at gmail.com
Tue Nov 16 08:29:22 CST 2021


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
 dlls/mshtml/dispex.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/mshtml/dispex.c b/dlls/mshtml/dispex.c
index bddb0e3..d10064e 100644
--- a/dlls/mshtml/dispex.c
+++ b/dlls/mshtml/dispex.c
@@ -1464,6 +1464,11 @@ HRESULT remove_attribute(DispatchEx *This, DISPID id, VARIANT_BOOL *success)
             return S_OK;
         }
 
+        if(!func->put_vtbl_off) {
+            *success = VARIANT_FALSE;
+            return S_OK;
+        }
+
         V_VT(&var) = VT_EMPTY;
         hres = builtin_propput(This, func, &dp, NULL);
         if(hres == E_NOTIMPL) {
-- 
2.31.1




More information about the wine-devel mailing list