diff options
Diffstat (limited to 'WebCore/platform/win/SharedBufferWin.cpp')
-rw-r--r-- | WebCore/platform/win/SharedBufferWin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WebCore/platform/win/SharedBufferWin.cpp b/WebCore/platform/win/SharedBufferWin.cpp index 1839c99..a95d590 100644 --- a/WebCore/platform/win/SharedBufferWin.cpp +++ b/WebCore/platform/win/SharedBufferWin.cpp @@ -57,6 +57,8 @@ PassRefPtr<SharedBuffer> SharedBuffer::createWithContentsOfFile(const String& fi goto exit; } + result->m_size = result->m_buffer.size(); + if (fread(result->m_buffer.data(), 1, fileStat.st_size, fileDescriptor) != fileStat.st_size) LOG_ERROR("Failed to fully read contents of file %s - errno(%i)", filePath.ascii().data(), errno); |