1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 23:34:10 +02:00

Fixed linux crash

This commit is contained in:
Brian Fiete 2020-04-30 14:04:45 -07:00
parent 47d7531fd0
commit 468882bd5b
2 changed files with 3 additions and 2 deletions

View file

@ -10355,6 +10355,7 @@ namespace IDE
Environment.GetExecutableFilePath(exeFilePath);
mVersionInfo = new .();
mVersionInfo.GetVersionInfo(exeFilePath).IgnoreError();
if (!String.IsNullOrEmpty(mVersionInfo.FileVersion))
Debug.Assert(mVersionInfo.FileVersion == cVersion);
#if BF_PLATFORM_WINDOWS
exeTime = File.GetLastWriteTime(exeFilePath).GetValueOrDefault();

View file

@ -1049,7 +1049,7 @@ public:
{
if (mGenericIdx < (int)mTypeDef->mGenericParamDefs.size())
return mTypeDef->mGenericParamDefs[mGenericIdx]->mName;
return NULL;
return "???";
}
};