First local Ivanitsky commit
Merge branch 'MichaelBranch' of https://github.com/ArtfulVampire/SecondGUIrepo into MichaelBranch
Fixed XP errors: fopen("wb"), memory allocation