mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 15:24:10 +02:00
Fixed linux crash
This commit is contained in:
parent
47d7531fd0
commit
468882bd5b
2 changed files with 3 additions and 2 deletions
|
@ -10355,6 +10355,7 @@ namespace IDE
|
||||||
Environment.GetExecutableFilePath(exeFilePath);
|
Environment.GetExecutableFilePath(exeFilePath);
|
||||||
mVersionInfo = new .();
|
mVersionInfo = new .();
|
||||||
mVersionInfo.GetVersionInfo(exeFilePath).IgnoreError();
|
mVersionInfo.GetVersionInfo(exeFilePath).IgnoreError();
|
||||||
|
if (!String.IsNullOrEmpty(mVersionInfo.FileVersion))
|
||||||
Debug.Assert(mVersionInfo.FileVersion == cVersion);
|
Debug.Assert(mVersionInfo.FileVersion == cVersion);
|
||||||
#if BF_PLATFORM_WINDOWS
|
#if BF_PLATFORM_WINDOWS
|
||||||
exeTime = File.GetLastWriteTime(exeFilePath).GetValueOrDefault();
|
exeTime = File.GetLastWriteTime(exeFilePath).GetValueOrDefault();
|
||||||
|
|
|
@ -1049,7 +1049,7 @@ public:
|
||||||
{
|
{
|
||||||
if (mGenericIdx < (int)mTypeDef->mGenericParamDefs.size())
|
if (mGenericIdx < (int)mTypeDef->mGenericParamDefs.size())
|
||||||
return mTypeDef->mGenericParamDefs[mGenericIdx]->mName;
|
return mTypeDef->mGenericParamDefs[mGenericIdx]->mName;
|
||||||
return NULL;
|
return "???";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue