X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFile.cxx;h=328845eaebdb129d2aaa08c969ff110f6645fd20;hb=b1cbd2d3c12ccac8b257901236fe8eb27a20b117;hp=581c5f4a4c0a1a926b3b55f857ec9cf04e971e16;hpb=226dc977654dc5150d279a7e72356f7790341040;p=gdcm.git diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index 581c5f4a..328845ea 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -799,9 +799,9 @@ bool gdcmFile::ReadPixelData(void* destination) { fread(&b2,1,1,fp); //Two steps is necessary to please VC++ *pdestination++ = ((b0 >> 4) << 8) + ((b0 & 0x0f) << 4) + (b1 & 0x0f); - /* A */ /* B */ /* D */ + /* A */ /* B */ /* D */ *pdestination++ = ((b2 & 0x0f) << 8) + ((b1 >> 4) << 4) + (b2 >> 4); - /* F */ /* C */ /* E */ + /* F */ /* C */ /* E */ // Troubles expected on Big-Endian processors ? } @@ -818,7 +818,6 @@ bool gdcmFile::ReadPixelData(void* destination) { Header->IsDeflatedExplicitVRLittleEndianTransferSyntax() ) { size_t ItemRead = fread(destination, Header->GetPixelAreaLength(), 1, fp); - if ( ItemRead != 1 ) { Header->CloseFile(); return false;