Avoid using SEEK_END when possible
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6917 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
1ae118af99
commit
5f1651ab91
4 changed files with 44 additions and 53 deletions
|
@ -273,7 +273,9 @@ int my_open(const TCHAR *pathname, int flags);
|
|||
FILE* my_fopen(const TCHAR *path, const char *mode);
|
||||
#define FOPEN(a, b) my_fopen((a), (b))
|
||||
|
||||
unsigned long get_file_size32(FILE *f);
|
||||
const UINT32 invalid_file_size32 = ~ (UINT32) 0;
|
||||
UINT32 get_file_size32(FILE *f);
|
||||
const UINT64 invalid_file_size64 = ~ (UINT64) 0;
|
||||
BYTE* alloc_and_read_file(FILE *f, unsigned long &size);
|
||||
BYTE* alloc_and_read_file(const TCHAR *filepath, unsigned long &size);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue