fixed MMapBuf on POSIX
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3569 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
49c2c1e139
commit
bbd00dc276
1 changed files with 5 additions and 5 deletions
|
@ -270,11 +270,7 @@ class SortedStringList
|
||||||
int pos=find(str, case_sensitive);
|
int pos=find(str, case_sensitive);
|
||||||
if (pos==-1) return 1;
|
if (pos==-1) return 1;
|
||||||
|
|
||||||
T *db=(T *)gr.get();
|
delbypos(pos);
|
||||||
free(db[pos].name);
|
|
||||||
freestruct(pos);
|
|
||||||
memmove(db+pos,db+pos+1,gr.getlen()-(pos*sizeof(T))-sizeof(T));
|
|
||||||
gr.resize(gr.getlen()-sizeof(T));
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -707,7 +703,11 @@ class MMapFile : public IMMap
|
||||||
quit();
|
quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
return (void *)((char *)m_pView + offset - alignedoffset);
|
return (void *)((char *)m_pView + offset - alignedoffset);
|
||||||
|
#else
|
||||||
|
return m_pView;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void *getmore(int offset, int *size)
|
void *getmore(int offset, int *size)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue