Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
  2. index 075ad85..eda583e 100644
  3. --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
  4. +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
  5. @@ -1281,12 +1281,19 @@ sub ParseStructPushPrimitives($$$$$)
  6. sub ParseStructPushDeferred($$$$)
  7. {
  8. my ($self, $struct, $ndr, $varname, $env) = @_;
  9. +
  10. if (defined($struct->{PROPERTIES}{relative_base})) {
  11. + $self->pidl("NDR_CHECK(ndr_push_align($ndr, $struct->{ALIGN}));");
  12. +
  13. # retrieve the current offset as base for relative pointers
  14. # based on the toplevel struct/union
  15. $self->pidl("NDR_CHECK(ndr_push_setup_relative_base_offset2($ndr, $varname));");
  16. }
  17. $self->ParseElementPush($_, $ndr, $env, 0, 1) foreach (@{$struct->{ELEMENTS}});
  18. +
  19. + if (defined($struct->{PROPERTIES}{relative_base})) {
  20. + $self->pidl("NDR_CHECK(ndr_push_trailer_align($ndr, $struct->{ALIGN}));");
  21. + }
  22. }
  23.  
  24. #####################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement