From 981437efbc966c4bb0880fc0b02715d297ae6644 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 20 Nov 2007 11:08:24 +0100 Subject: r26053: IPC_RAP: don't use ndr_pull_save anymore metze (This used to be commit 590dd7f8a1ccba762dfcdfb036cf44306da2354a) --- source4/ntvfs/ipc/ipc_rap.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/ntvfs/ipc') diff --git a/source4/ntvfs/ipc/ipc_rap.c b/source4/ntvfs/ipc/ipc_rap.c index 2a9d66cae8..d8e9812dd8 100644 --- a/source4/ntvfs/ipc/ipc_rap.c +++ b/source4/ntvfs/ipc/ipc_rap.c @@ -273,10 +273,10 @@ static NTSTATUS _rap_netshareenum(struct rap_call *call) for (r.out.count = 0; r.out.count < r.out.available; r.out.count++) { int i = r.out.count; - struct ndr_push_save data_save; + uint32_t offset_save; struct rap_heap_save heap_save; - ndr_push_save(call->ndr_push_data, &data_save); + offset_save = call->ndr_push_data->offset; rap_heap_save(call->heap, &heap_save); switch(r.in.level) { @@ -305,7 +305,7 @@ static NTSTATUS _rap_netshareenum(struct rap_call *call) buffer_overflow: - ndr_push_restore(call->ndr_push_data, &data_save); + call->ndr_push_data->offset = offset_save; rap_heap_restore(call->heap, &heap_save); break; } @@ -355,10 +355,10 @@ static NTSTATUS _rap_netserverenum2(struct rap_call *call) for (r.out.count = 0; r.out.count < r.out.available; r.out.count++) { int i = r.out.count; - struct ndr_push_save data_save; + uint32_t offset_save; struct rap_heap_save heap_save; - ndr_push_save(call->ndr_push_data, &data_save); + offset_save = call->ndr_push_data->offset; rap_heap_save(call->heap, &heap_save); switch(r.in.level) { @@ -389,7 +389,7 @@ static NTSTATUS _rap_netserverenum2(struct rap_call *call) buffer_overflow: - ndr_push_restore(call->ndr_push_data, &data_save); + call->ndr_push_data->offset = offset_save; rap_heap_restore(call->heap, &heap_save); break; } -- cgit