mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 22:43:01 +00:00
fix another fucking IGFD crash bug
This commit is contained in:
parent
0292f4d4c3
commit
051cd6e966
1 changed files with 16 additions and 0 deletions
16
extern/igfd/ImGuiFileDialog.cpp
vendored
16
extern/igfd/ImGuiFileDialog.cpp
vendored
|
@ -1220,6 +1220,8 @@ namespace IGFD
|
||||||
std::sort(prFileList.begin(), prFileList.end(),
|
std::sort(prFileList.begin(), prFileList.end(),
|
||||||
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
||||||
{
|
{
|
||||||
|
if (a==NULL || b==NULL)
|
||||||
|
return false;
|
||||||
if (!a.use_count() || !b.use_count())
|
if (!a.use_count() || !b.use_count())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -1249,6 +1251,8 @@ namespace IGFD
|
||||||
std::sort(prFileList.begin(), prFileList.end(),
|
std::sort(prFileList.begin(), prFileList.end(),
|
||||||
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
||||||
{
|
{
|
||||||
|
if (a==NULL || b==NULL)
|
||||||
|
return false;
|
||||||
if (!a.use_count() || !b.use_count())
|
if (!a.use_count() || !b.use_count())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -1283,6 +1287,8 @@ namespace IGFD
|
||||||
std::sort(prFileList.begin(), prFileList.end(),
|
std::sort(prFileList.begin(), prFileList.end(),
|
||||||
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
||||||
{
|
{
|
||||||
|
if (a==NULL || b==NULL)
|
||||||
|
return false;
|
||||||
if (!a.use_count() || !b.use_count())
|
if (!a.use_count() || !b.use_count())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -1298,6 +1304,8 @@ namespace IGFD
|
||||||
std::sort(prFileList.begin(), prFileList.end(),
|
std::sort(prFileList.begin(), prFileList.end(),
|
||||||
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
||||||
{
|
{
|
||||||
|
if (a==NULL || b==NULL)
|
||||||
|
return false;
|
||||||
if (!a.use_count() || !b.use_count())
|
if (!a.use_count() || !b.use_count())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -1319,6 +1327,8 @@ namespace IGFD
|
||||||
std::sort(prFileList.begin(), prFileList.end(),
|
std::sort(prFileList.begin(), prFileList.end(),
|
||||||
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
||||||
{
|
{
|
||||||
|
if (a==NULL || b==NULL)
|
||||||
|
return false;
|
||||||
if (!a.use_count() || !b.use_count())
|
if (!a.use_count() || !b.use_count())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -1334,6 +1344,8 @@ namespace IGFD
|
||||||
std::sort(prFileList.begin(), prFileList.end(),
|
std::sort(prFileList.begin(), prFileList.end(),
|
||||||
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
||||||
{
|
{
|
||||||
|
if (a==NULL || b==NULL)
|
||||||
|
return false;
|
||||||
if (!a.use_count() || !b.use_count())
|
if (!a.use_count() || !b.use_count())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -1355,6 +1367,8 @@ namespace IGFD
|
||||||
std::sort(prFileList.begin(), prFileList.end(),
|
std::sort(prFileList.begin(), prFileList.end(),
|
||||||
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
||||||
{
|
{
|
||||||
|
if (a==NULL || b==NULL)
|
||||||
|
return false;
|
||||||
if (!a.use_count() || !b.use_count())
|
if (!a.use_count() || !b.use_count())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -1370,6 +1384,8 @@ namespace IGFD
|
||||||
std::sort(prFileList.begin(), prFileList.end(),
|
std::sort(prFileList.begin(), prFileList.end(),
|
||||||
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
||||||
{
|
{
|
||||||
|
if (a==NULL || b==NULL)
|
||||||
|
return false;
|
||||||
if (!a.use_count() || !b.use_count())
|
if (!a.use_count() || !b.use_count())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue