X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmHeaderHelper.cxx;fp=src%2FgdcmHeaderHelper.cxx;h=27aafc3de3e535e5950b2220673feed9b7fff60f;hb=27c61aa23c3f02def28d44dca855e54d9adb25a1;hp=95128a194ba324ff094eb617e0f99cab032f41ed;hpb=e18676073c17ff376992fa2262a2fb12eedb4411;p=gdcm.git diff --git a/src/gdcmHeaderHelper.cxx b/src/gdcmHeaderHelper.cxx index 95128a19..27aafc3d 100644 --- a/src/gdcmHeaderHelper.cxx +++ b/src/gdcmHeaderHelper.cxx @@ -37,6 +37,8 @@ int GetDir(std::string dPath, std::list &filenames) { DIR *dir = opendir( dPath.c_str() ); + if (dir == NULL) + return false; struct dirent *entry; while((entry = readdir(dir)) != NULL) { @@ -123,7 +125,7 @@ int gdcmHeaderHelper::GetPixelSize() { * - FD Double, * \warning 12 bit images appear as 16 bit. * \ 24 bit images appear as 8 bit - * \ DOUBLE images are coded as 64 bits + * \ 64 bit means 'DOUBLE' images * \ (no DOUBLE images in kosher DICOM, * \ but so usefull for people that miss them ;-) * @return