git: 9front

ref: eee5cb15e7e014a6dda383d0482c43dca65b6336
dir: /sys/src/cmd/aquarela/smbcomfindclose2.c/

View raw version
#include "headers.h"

SmbProcessResult
smbcomfindclose2(SmbSession *s, SmbHeader *h, uchar *pdata, SmbBuffer *)
{
	ushort sid;
	if (!smbcheckwordcount("comfindclose2", h, 1))
		return SmbProcessResultFormat;
	sid = smbnhgets(pdata);
	smbsearchclosebyid(s, sid);
	return smbbufferputack(s->response, h, &s->peerinfo);
}