C/C++において、
... = fopen(szFileName, "rb");
と、”rb”ではなく、
... = fopne(szFileName, "br");
と、”br”と「b」と「r」を入れ替えて実行するとエラーを起こす。