1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-14 20:23:54 +03:00

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 commit is contained in:
Stefan Metzmacher
2005-07-05 06:17:47 +00:00
committed by Gerald (Jerry) Carter
parent 4ef721ce53
commit ccc9d9267a

View File

@@ -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);
}