summaryrefslogtreecommitdiff
path: root/lib/common/FileStream.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-11-30 22:00:23 +0000
committerChris Wilson <chris+github@qwirx.com>2008-11-30 22:00:23 +0000
commit4584e25170424be8b0f9cae7012def007619b514 (patch)
tree861599599a727bff3f58d8da738705be47245e16 /lib/common/FileStream.cpp
parent75c9833730a94585b190d2bc4414bf6f54e2f9f2 (diff)
Compile fix and log the error number recorded by winerrno, not
the "last" error, whatever that was.
Diffstat (limited to 'lib/common/FileStream.cpp')
-rw-r--r--lib/common/FileStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common/FileStream.cpp b/lib/common/FileStream.cpp
index 630a1ae5..3e3ace3f 100644
--- a/lib/common/FileStream.cpp
+++ b/lib/common/FileStream.cpp
@@ -74,8 +74,8 @@ void FileStream::AfterOpen()
else
{
#ifdef WIN32
- BOX_LOG_WIN_WARNING("Failed to open file: " <<
- mFileName);
+ BOX_LOG_WIN_WARNING_NUMBER("Failed to open file: " <<
+ mFileName, winerrno);
#else
BOX_LOG_SYS_WARNING("Failed to open file: " <<
mFileName);