diff --git a/include/about.cpp b/include/about.cpp index 97cfe2e8c..fb44bf742 100755 --- a/include/about.cpp +++ b/include/about.cpp @@ -290,10 +290,16 @@ TInfo_mask::TInfo_mask() : TProperty_sheet(TR("Informazioni")) if (main_app().get_version_info(year, release, tag, patch)) versione.format("%d.%02d.%02d Patch %d", year, release, tag, patch); - const time_t mtime = xvt_fsys_file_attr(main_app().argv(0), XVT_FILE_ATTR_MTIME); - const struct tm* data = localtime(&mtime); - TString16 datamod; datamod.format("%02d-%02d-%04d", data->tm_mday, data->tm_mon+1, data->tm_year+1900); - + TString16 datamod; + TFilename cmdline = main_app().argv(0); + cmdline.ext("exe"); + if (cmdline.exist()) + { + const time_t mtime = xvt_fsys_file_attr(cmdline, XVT_FILE_ATTR_MTIME); + const struct tm* data = localtime(&mtime); + if (data != NULL) + datamod.format("%02d-%02d-%04d", data->tm_mday, data->tm_mon+1, data->tm_year+1900); + } TString80 stros, strwx, strcpu; xvt_sys_get_version(stros.get_buffer(), strwx.get_buffer(), stros.size()); xvt_sys_get_host_name(strcpu.get_buffer(), strcpu.size());