Failed creating mmap
Hi,
I get a
"failed creating mmap of..." error on a file (yes, it's over 2 GB in size).
I think the relevant code in mmap.c is:
DWORD is unsigned int, yet it's cast into signed int, why?int MMapFile
::setfile(HANDLE hFile, DWORD dwSize)
...
>m_iSize = (int) dwSize;
if (m_iSize <= 0)
return0;
m_hFileMap = CreateFileMapping(m_hFile, NULL, PAGE_READONLY, 0, m_iSize, NULL);
Does the following change result in any erronous side-effects?
...
m_uSize == 0)
>m_uSize = (unsigned int) dwSize;
if (
return0;
...