Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-10317

WIDL and rpcrt4 do not support FC_ALLOCATE_ALL_NODES

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Wine

      Description

      In dssetup.idl, the string pointers inside DSROLER_PRIMARY_DOMAIN_INFO_BASIC are marked with the [unique] attribute. This means the server has to allocate them using separate MIDL_user_allocate calls.
      However the client side requires the data to be in one buffer that requires only a single free. Windows accomplishes that by setting the FC_ALLOCATE_ALL_NODES attribute on these pointer types (using the allocate(all_nodes) ACF attribute), and rpcrt4 does the rest.

      Neither widl nor our rpcrt4 support this attribute, so we have to remove the [unique] attribute and have the server perform only a single allocation until we have a better way to achieve this..

      Stub-Allocated Buffers: https://msdn.microsoft.com/en-us/library/windows/desktop/aa378696%28v=vs.85%29.aspx
      allocate attribute: https://msdn.microsoft.com/en-us/library/windows/desktop/aa366724%28v=vs.85%29.aspx

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bug zilla Bug Zilla
                Reporter:
                ThFabba ThFabba
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: