mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-06 17:32:40 +00:00
Clang
This commit is contained in:
parent
032ef799b8
commit
033d1ef9b6
@ -16,7 +16,8 @@ int PS4_SYSV_ABI sceNpCmpNpId(OrbisNpId* np_id1, OrbisNpId* np_id2) {
|
|||||||
|
|
||||||
// Compare data
|
// Compare data
|
||||||
if (std::strncmp(reinterpret_cast<char*>(np_id1->handle.data),
|
if (std::strncmp(reinterpret_cast<char*>(np_id1->handle.data),
|
||||||
reinterpret_cast<char*>(np_id2->handle.data), ORBIS_NP_ONLINEID_MAX_LENGTH) != 0) {
|
reinterpret_cast<char*>(np_id2->handle.data),
|
||||||
|
ORBIS_NP_ONLINEID_MAX_LENGTH) != 0) {
|
||||||
return ORBIS_NP_UTIL_ERROR_NOT_MATCH;
|
return ORBIS_NP_UTIL_ERROR_NOT_MATCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,8 +44,9 @@ int PS4_SYSV_ABI sceNpCmpNpIdInOrder(OrbisNpId* np_id1, OrbisNpId* np_id2, u32*
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Compare data
|
// Compare data
|
||||||
u32 compare = std::strncmp(reinterpret_cast<char*>(np_id1->handle.data),
|
u32 compare =
|
||||||
reinterpret_cast<char*>(np_id2->handle.data), ORBIS_NP_ONLINEID_MAX_LENGTH);
|
std::strncmp(reinterpret_cast<char*>(np_id1->handle.data),
|
||||||
|
reinterpret_cast<char*>(np_id2->handle.data), ORBIS_NP_ONLINEID_MAX_LENGTH);
|
||||||
if (compare < 0) {
|
if (compare < 0) {
|
||||||
*out_result = -1;
|
*out_result = -1;
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
@ -85,7 +87,8 @@ int PS4_SYSV_ABI sceNpCmpOnlineId(OrbisNpOnlineId* online_id1, OrbisNpOnlineId*
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (std::strncmp(reinterpret_cast<char*>(online_id1->data),
|
if (std::strncmp(reinterpret_cast<char*>(online_id1->data),
|
||||||
reinterpret_cast<char*>(online_id2->data), ORBIS_NP_ONLINEID_MAX_LENGTH) != 0) {
|
reinterpret_cast<char*>(online_id2->data),
|
||||||
|
ORBIS_NP_ONLINEID_MAX_LENGTH) != 0) {
|
||||||
return ORBIS_NP_UTIL_ERROR_NOT_MATCH;
|
return ORBIS_NP_UTIL_ERROR_NOT_MATCH;
|
||||||
}
|
}
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user