ToutEnMasm, thank you for finding the error in JWasm main :t
It doesn't affect Windows 7 or former windows but the Windows 8
I have bought a new laptop (Toshiba Qosmio with pre-installed Windows 8.1 ) and encountered the same problem as you:
"General Failure"
So, I looked the changes you have suggested. It worked with them.
After a little bit of experimenting I found out that the Windows 8.1 doesn't like long fh;
when I changed it to intptr_t fh; it worked with no problem (intptr_t is __int64)
Therefore, there is no need to change anything else in main function except that
Here are the 64-bit binaries