mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
sceSaveDataDirNameSearch: Removed nullptr early failure exit
This commit is contained in:
parent
c279e9e6f4
commit
b3174cfe33
@ -177,11 +177,11 @@ int PS4_SYSV_ABI sceSaveDataDeleteUser() {
|
|||||||
|
|
||||||
int PS4_SYSV_ABI sceSaveDataDirNameSearch(const OrbisSaveDataDirNameSearchCond* cond,
|
int PS4_SYSV_ABI sceSaveDataDirNameSearch(const OrbisSaveDataDirNameSearchCond* cond,
|
||||||
OrbisSaveDataDirNameSearchResult* result) {
|
OrbisSaveDataDirNameSearchResult* result) {
|
||||||
if (cond == nullptr || cond->dirName == nullptr)
|
if (cond != nullptr && cond->dirName != nullptr) {
|
||||||
return ORBIS_SAVE_DATA_ERROR_PARAMETER;
|
|
||||||
LOG_ERROR(Lib_SaveData,
|
LOG_ERROR(Lib_SaveData,
|
||||||
"TODO sceSaveDataDirNameSearch: search_dir_name = {}, key = {}, result = {}",
|
"TODO sceSaveDataDirNameSearch: search_dir_name = {}, key = {}, result = {}",
|
||||||
cond->dirName->data, (int)cond->key, (result->infos == nullptr));
|
cond->dirName->data, (int)cond->key, (result->infos == nullptr));
|
||||||
|
}
|
||||||
|
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user