Skip to content

Commit 1ea157e

Browse files
committed
xrCore: fix file_stream_reader
1 parent 2808612 commit 1ea157e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xrCore/file_stream_reader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ void CFileStreamReader::construct(LPCSTR file_name, const u32& window_size)
1515
HANDLE file_mapping_handle = CreateFileMapping(m_file_handle, 0, PAGE_READONLY, 0, 0, 0);
1616
VERIFY(file_mapping_handle != INVALID_HANDLE_VALUE);
1717

18+
inherited::construct(file_mapping_handle, 0, file_size, file_size, window_size);
1819
#elif defined(LINUX)
1920
m_file_handle = ::open(file_name, O_RDONLY);
2021
VERIFY(m_file_handle != -1);
2122
struct stat file_info;
2223
::fstat(m_file_handle, &file_info);
2324
u32 file_size = (u32)file_info.st_size;
24-
#endif
2525
inherited::construct(&m_file_handle, 0, file_size, file_size, window_size);
26+
#endif
2627
}
2728

2829
void CFileStreamReader::destroy()

0 commit comments

Comments
 (0)