mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Clover.cpp
临时解决Nox提示 "QQ 屡次停止运行" ,不清楚副作用
This commit is contained in:
parent
262af4108b
commit
29c1ad8bc9
@ -138,6 +138,13 @@ char * __cdecl my_strstr(const char *lhs, const char *rhs) {
|
||||
}
|
||||
|
||||
int fake_memcmp(const void* __lhs, const void* __rhs, size_t __n) {
|
||||
int fake_memcmp(const void* __lhs, const void* __rhs, size_t __n) {
|
||||
if (__lhs == nullptr || __rhs == nullptr) {
|
||||
if (__n != 0) {
|
||||
LOGI("[Shamrock] undefined behaviour in fake_memcmp");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
if (my_strstr((const char*) __rhs, "shamrock") && my_strstr((const char*) __lhs, "shamrock")) {
|
||||
if (backup_memcmp(__lhs, __rhs, __n) == 0) {
|
||||
// 底层广播判断
|
||||
|
Loading…
x
Reference in New Issue
Block a user