(cppcheck fix) Possible null pointer dereference: h - otherwise it is redundant to check it against null.
Opening binary files as "r" doesn't work in windows.
Merge pull request #4 from jarikomppa/upstream_patches

Loading .pat files did not work in windows - "r" for binaries is bad