When saving a wad for the second time some code would run that tried to use native windows function and caused a crash.