winnt-fileinfo-is-directory-20030710

correctly report directories by not setting field in incorrect position
in reply.
This commit is contained in:
Robert S. Murawski 2003-07-11 03:12:46 +00:00 committed by Derrick Brashear
parent ddac9ce59a
commit 7eeb271d9f

View File

@ -1345,9 +1345,9 @@ long smb_ReceiveTran2QFileInfo(smb_vc_t *vcp, smb_tran2Packet_t *p, smb_packet_t
*((LARGE_INTEGER *)op) = scp->length; op += 8; /* EOF */
*((u_long *)op) = scp->linkCount; op += 4;
*op++ = ((fidp->flags & SMB_FID_DELONCLOSE) ? 1 : 0);
*op++ = 0;
*op++ = (scp->fileType == CM_SCACHETYPE_DIRECTORY ? 1 : 0);
*op++ = 0;
*op++ = 0;
}
else if (infoLevel == 0x103) {
*((u_long *)op) = 0; op += 4;