Fix a bug in Windows resource file detection.

The magic bytes should not include the trailing NUL byte.