[Libreoffice-bugs] [Bug 111696] No macro security dialog with High setting

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 15 09:29:43 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=111696

--- Comment #14 from Noel Grandin <noelgrandin at gmail.com> ---
Very weird.

ErrorResource::getString in uui/ is calling getRest on the passed in errorCode
before comparing to the value in the array.

The other things that get passed to ErrorResource::getString, their definitions
look like:

        { NC_("RID_UUI_ERRHDL", "The operation executed on $(ARG1) was
aborted."),
          ErrCode(sal_uInt32(ERRCODE_UUI_IO_ABORT) & ERRCODE_RES_MASK) },

but RID_ERRHDL in svtools/inc/errtxt.hrc does not, it looks like:

        { NC_("RID_ERRHDL", "An attempt was made to execute a macro.\nFor
security reasons, macro support is disabled."),
          ErrCode(ERRCODE_SFX_MACROS_SUPPORT_DISABLED) },


Similarly SfxErrorHandler::GetErrorString in sfx2/source/appl/appinit.cxx is
casting to sal_uInt16 which has much the same effect as calling getRest() or
anding with ERRCODE_RES_MASK.

How this used to work I don't know, I suspect that somehow the value in the old
.hrc file was being truncated to 16 bits.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170815/73229814/attachment.html>


More information about the Libreoffice-bugs mailing list