mm_file_io_c: compare return value to INVALID_HANDLE_VALUE instead of hardcoded value

On 64bit systems INVALID_HANDLE_VALUE does not equal 0xffffffff…

Fixes #972.