[cmp] Enable extraction of zip archives outside of ISO copy mode

* This enables the use of Ctrl-SELECT to also extract files from a .zip
  when using non-bootable, DOS, UEFI-NTFS, etc.
* Also clean up some uprintf line terminations and some additional code.
* Also fix some Coverity and MinGW warnings.
This commit is contained in:
Pete Batard 2024-03-12 17:36:24 +00:00
parent abc33122a0
commit 5eae8a6441
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
10 changed files with 115 additions and 77 deletions

View file

@ -1146,6 +1146,13 @@ static __inline const char* _filenameU(const char* path)
return path;
}
static __inline uint64_t _filesizeU(const char* path)
{
struct __stat64 stat64 = { 0 };
_stat64U(path, &stat64);
return stat64.st_size;
}
// returned UTF-8 string must be freed
static __inline char* getenvU(const char* varname)
{