microsoft / MSIX-PackageSupportFramework

The Package Support Framework (PSF) is a kit for applying compatibility fixes to packaged desktop applications.
MIT License
114 stars 57 forks source link

Throw error if config.json is not found #200

Open SaiiDey opened 2 years ago

SaiiDey commented 2 years ago

In PsfRuntime/Config.cpp we have function load_json. We try multiple locations where we expect config.json. But if config.sjon is not found anywhere, we don't get proper error. It simply crashes. Check the for loop. We don't check if file is still null after exiting the for loop but that is a valid outcome from the code flow.