mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-13 11:39:47 +00:00
fix irrelevant error reporting
This commit is contained in:
parent
6cb795ef7d
commit
417e07fbce
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ void LowLevelFile::open (char const * filename)
|
|||
std::wstring wname = boost::locale::conv::utf_to_utf<wchar_t>(filename);
|
||||
HANDLE handle = CreateFileW (wname.c_str(), GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);
|
||||
|
||||
if (handle == NULL)
|
||||
if (handle == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
std::ostringstream os;
|
||||
os << "Failed to open '" << filename << "' for reading.";
|
||||
|
|
Loading…
Reference in a new issue