Opened 12 years ago
Closed 12 years ago
#2195 closed defect (fixed)
Method FileUtil::GetFileStatus() return false when proceesing file which size is bigger than 2^31
Reported by: | zhanga | Owned by: | zhanga |
---|---|---|---|
Priority: | low | Milestone: | 2.5 |
Component: | General | Version: | 2.2.0 |
Severity: | minor | Keywords: | |
Cc: | External ID: | 1470843 |
Description
The behavior of system call _wstat in VC9 and VC10 is different when handling file which size is bigger than 231. In VC9, it returns 0. But in VC10, it returns -1. Then some checks will be failed when opening a big file. To fix this issue, we need to use _wstat64 instead of _wstat.
Note:
See TracTickets
for help on using tickets.