From 53067ce37fc6056961768411062414e9074da2ab Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 5 Jul 2005 06:17:47 +0000 Subject: r8157: add the algorithm for unique pointers that w2k3 uses. this is ifdef'ed out currently because we use 'unique' pointers in the epmapper pipe, where we should use 'ptr' full pointers. metze (This used to be commit ccc9d9267a60287eff1fb26132aa7cae3b39dcee) --- source4/librpc/ndr/ndr_basic.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/librpc/ndr') diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c index a33378dd1b..0a268ac6c9 100644 --- a/source4/librpc/ndr/ndr_basic.c +++ b/source4/librpc/ndr/ndr_basic.c @@ -563,8 +563,14 @@ NTSTATUS ndr_push_unique_ptr(struct ndr_push *ndr, const void *p) { uint32_t ptr = 0; if (p) { +#if 0 + ptr = ndr->ptr_count * 4; + ptr |= 0x00020000; + ndr->ptr_count++; +#else ndr->ptr_count++; ptr = ndr->ptr_count; +#endif } return ndr_push_uint32(ndr, NDR_SCALARS, ptr); } -- cgit