1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 23:56:05 +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,7 +10355,8 @@ namespace IDE
Environment.GetExecutableFilePath(exeFilePath);
mVersionInfo = new .();
mVersionInfo.GetVersionInfo(exeFilePath).IgnoreError();
Debug.Assert(mVersionInfo.FileVersion == cVersion);
if (!String.IsNullOrEmpty(mVersionInfo.FileVersion))
Debug.Assert(mVersionInfo.FileVersion == cVersion);
#if BF_PLATFORM_WINDOWS
exeTime = File.GetLastWriteTime(exeFilePath).GetValueOrDefault();
#endif

View file

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