Skip to content

Commit b5beb39

Browse files
committed
fixed:the problem that Database_Memory_FileQuery is empty
1 parent 5e19f04 commit b5beb39

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

XEngine_Source/StorageModule_Database/Database_Memory/Database_Memory.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,13 @@ bool CDatabase_Memory::Database_Memory_FileQuery(XSTORAGECORE_DBFILE*** pppSt_Li
236236
}
237237
st_Locker->unlock_shared();
238238

239-
*pInt_ListCount = 1;
240-
BaseLib_OperatorMemory_Malloc((XPPPMEM)pppSt_ListFile, 1, sizeof(XSTORAGECORE_DBFILE));
239+
if (bFound)
240+
{
241+
*pInt_ListCount = 1;
242+
BaseLib_OperatorMemory_Malloc((XPPPMEM)pppSt_ListFile, 1, sizeof(XSTORAGECORE_DBFILE));
241243

242-
*(*pppSt_ListFile)[0] = *stl_ListIterator;
244+
*(*pppSt_ListFile)[0] = *stl_ListIterator;
245+
}
243246
return true;
244247
}
245248
//////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)