OpenTrespasser / JurassicParkTrespasser

A git-based fork of the Jurassic Park: Trespasser source code.
101 stars 25 forks source link

Resolve ValidateDiskSpace overflow bug #90

Closed meekee7 closed 4 years ago

meekee7 commented 4 years ago

The implementation of ValidateDiskSpace is prone to overflows of the 32bit DWORD variables. This causes occasional false positive user error messages about insufficient disk space. That is especially likely to happen with disks that have a couple of terabytes of capacity. The function is rewritten using C++17 STL facilities.