fix faults of load project on Win 32.
Merge pull request #6936 from Dhilan007/v3

fix faults of load project on Win 32.