1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-23 06:50:21 +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 used to be commit ccc9d9267a60287eff1fb26132aa7cae3b39dcee)
This commit is contained in:
Stefan Metzmacher 2005-07-05 06:17:47 +00:00 committed by Gerald (Jerry) Carter
parent a33178fc72
commit 53067ce37f

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