summaryrefslogtreecommitdiffstats
path: root/source/lib/socket_wrapper/socket_wrapper.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-15 20:36:38 +0000
committerAndrew Tridgell <tridge@samba.org>2006-09-15 20:36:38 +0000
commit60438223bc0b417a57cfb9b126e112bda0c74a36 (patch)
tree25875f5768cac2413c68c014752923cc6cbcefd5 /source/lib/socket_wrapper/socket_wrapper.c
parent7d2a0f9b27cbc18d19c84f47c26baa0a8c750acb (diff)
downloadsamba-60438223bc0b417a57cfb9b126e112bda0c74a36.tar.gz
samba-60438223bc0b417a57cfb9b126e112bda0c74a36.tar.xz
samba-60438223bc0b417a57cfb9b126e112bda0c74a36.zip
r18566: fixed the winreg pipe and winreg tests
Jerry, there is a big difference on the wire between these two: [out] uint32 x; and [out] uint32 *x; if you change from [out] uint32 x; then you need to change to: [out,ref] uint32 *x; otherwise it changes the format on the wire, which means we are no longer compatible with MS servers. but be aware that even if you change to a ref ptr, you also need to change all the client code to set all the return variables in the out part of the structure. That's why I don't like the MIDL restriction of forcing the use of ref pointers for output variables - it makes life much harder when writing client code, and makes the code much more error prone (just look at all the extra code needed to make this work again). I know we could auto-allocate these variables in the generated client side NDR code, but if we did that then we would have no way of doing a _real_ ref out pointer, which we really wanted to set to some already allocated variable. So please hold off on changing our idl to use the MIDL convention for output variables until Jelmer and I have had a good "chat" about this :-)
Diffstat (limited to 'source/lib/socket_wrapper/socket_wrapper.c')
0 files changed, 0 insertions, 0 deletions