fix open file failed at the win32