Skip to content

Commit

Permalink
Buildfix
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Feb 15, 2014
1 parent aafdd67 commit d49cffe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Common/FileUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ bool Exists(const std::string &filename)
{
// Make sure Windows will no longer handle critical errors, which means no annoying "No disk" dialog
// Save the old error mode
#ifdef _WIN32
int OldMode = SetErrorMode(SEM_FAILCRITICALERRORS);
#endif

struct stat64 file_info;
#if defined(_WIN32) && defined(UNICODE)
Expand All @@ -151,7 +153,9 @@ bool Exists(const std::string &filename)
#endif

// Set the old error mode
#ifdef _WIN32
SetErrorMode(OldMode);
#endif

return (result == 0);
}
Expand Down

0 comments on commit d49cffe

Please sign in to comment.