Fix stack trace in win_file virtual function