Pārlūkot izejas kodu

Fixed segmentation fault for decoding on Windows

refactor
pirms 4 gadiem
vecāks
revīzija
53c21ee4f0
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3
    2
      source/Fileproc.cpp

+ 3
- 2
source/Fileproc.cpp Parādīt failu

@@ -63,7 +63,8 @@ void Closefproc() {
// Starts new decoded page. Returns non-negative index to table of processed
// files on success or -1 on error.
int Startnextpage(t_superblock *superblock) {
t_fproc *pf;
t_fproc tmp = {};
t_fproc *pf = &tmp;
// initialize new descriptor.

// strnicmp no longer in standard C++
@@ -75,7 +76,7 @@ int Startnextpage(t_superblock *superblock) {
superblockName.begin(), ::tolower);
const char * cPfName = pfName.c_str();
const char * cSuperblockName = superblockName.c_str();
#ifdef __linux__
// instead of FILETIME comparision, use time_t
double seconds = difftime(pf->modified, superblock->modified);

Notiek ielāde…
Atcelt
Saglabāt