From 185adabf0173bc808c35543ed703f2f107aecafc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 8 Oct 2009 14:02:39 +0200 Subject: [PATCH] s3: Fix shadow copy display on Windows 7 Windows 7 is a bit more picky on our NT_STATUS_BUFFER_TOO_SMALL. Announce the right buffer size, the same amount we later check for. Fix bug #6850 (Shadow Copy Support for VISTA / Windows 7). (cherry picked from commit b1243ff12d4f4b948dc7bbd85795f8ee8f7621d9) --- source3/smbd/nttrans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 9f30f0631b1..dfe59f0deb2 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -1991,7 +1991,7 @@ static void call_nt_transact_ioctl(connection_struct *conn, } /* needed_data_count 4 bytes */ - SIVAL(pdata,8,labels_data_count); + SIVAL(pdata, 8, labels_data_count+4); cur_pdata+=12; -- 2.34.1