Fixed tail import into SMB

This commit is contained in:
Alexander S. Aganichev 2002-09-03 07:29:42 +00:00
parent 36ab81f044
commit 26caf9560e

View File

@ -757,7 +757,7 @@ void SMBArea::save_hdr(int mode, gmsg* msg)
l = ftell(data->sdt_fp);
fwrite(sbody-2, SDT_BLOCK_LEN, smb_datblocks(bodylen), data->sdt_fp);
if(taillen) {
fseek(data->sdt_fp, l+bodylen, SEEK_SET);
fseek(data->sdt_fp, l+bodylen+2, SEEK_SET);
*(ushort *)(stail-2) = XLAT_NONE;
fwrite(stail-2, SDT_BLOCK_LEN, smb_datblocks(taillen), data->sdt_fp);
}