Changeset 2858 for trunk/src/lib/nt/ntstat.c
- Timestamp:
- Sep 1, 2016, 5:12:24 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/nt/ntstat.c
r2851 r2858 208 208 pStat->st_uid = 0; 209 209 pStat->st_gid = 0; 210 pStat->st_padding1[0] = 0; 211 pStat->st_padding1[1] = 0; 212 pStat->st_padding1[2] = 0; 210 pStat->st_padding1 = 0; 211 pStat->st_attribs = pBuf->FileAttributes; 213 212 pStat->st_blksize = 65536; 214 213 pStat->st_blocks = (pBuf->AllocationSize.QuadPart + BIRD_STAT_BLOCK_SIZE - 1) … … 241 240 pStat->st_uid = 0; 242 241 pStat->st_gid = 0; 243 pStat->st_padding1[0] = 0; 244 pStat->st_padding1[1] = 0; 245 pStat->st_padding1[2] = 0; 242 pStat->st_padding1 = 0; 243 pStat->st_attribs = pBuf->FileAttributes; 246 244 pStat->st_blksize = 65536; 247 245 pStat->st_blocks = (pBuf->AllocationSize.QuadPart + BIRD_STAT_BLOCK_SIZE - 1) … … 274 272 pStat->st_uid = 0; 275 273 pStat->st_gid = 0; 276 pStat->st_padding1[0] = 0; 277 pStat->st_padding1[1] = 0; 278 pStat->st_padding1[2] = 0; 274 pStat->st_padding1 = 0; 275 pStat->st_attribs = pBuf->FileAttributes; 279 276 pStat->st_blksize = 65536; 280 277 pStat->st_blocks = (pBuf->AllocationSize.QuadPart + BIRD_STAT_BLOCK_SIZE - 1) … … 314 311 pStat->st_uid = 0; 315 312 pStat->st_gid = 0; 316 pStat->st_padding1[0] = 0; 317 pStat->st_padding1[1] = 0; 318 pStat->st_padding1[2] = 0; 313 pStat->st_padding1 = 0; 314 pStat->st_attribs = pAll->StandardInformation.FileAttributes; 319 315 pStat->st_blksize = 65536; 320 316 pStat->st_blocks = (pAll->StandardInformation.AllocationSize.QuadPart + BIRD_STAT_BLOCK_SIZE - 1) … … 389 385 pStat->st_uid = 0; 390 386 pStat->st_gid = 0; 391 pStat->st_padding1[0] = 0; 392 pStat->st_padding1[1] = 0; 393 pStat->st_padding1[2] = 0; 387 pStat->st_padding1 = 0; 388 pStat->st_attribs = BasicInfo.FileAttributes; 394 389 pStat->st_blksize = 65536; 395 390 pStat->st_blocks = (StdInfo.AllocationSize.QuadPart + BIRD_STAT_BLOCK_SIZE - 1) … … 608 603 pStat->st_uid = 0; 609 604 pStat->st_gid = 0; 610 pStat->st_padding1[0] = 0; 611 pStat->st_padding1[1] = 0; 612 pStat->st_padding1[2] = 0; 605 pStat->st_padding1 = 0; 606 pStat->st_attribs = fFileType == FILE_TYPE_PIPE ? FILE_ATTRIBUTE_NORMAL : FILE_ATTRIBUTE_DEVICE; 613 607 pStat->st_blksize = 512; 614 608 pStat->st_blocks = 0;
Note:
See TracChangeset
for help on using the changeset viewer.