This commit is contained in:
恍兮惚兮 2024-05-09 15:18:21 +08:00
parent eed557375f
commit 5f2f2e55f7
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ namespace il2cpp_symbols
maybes.push_back(klass);
if(il2cpp_class_get_namespace){
auto namespacename=il2cpp_class_get_namespace(klass);
if(strcmp(namespacename,namespaze)==0){
if(strlen(namespaze)&&(strcmp(namespacename,namespaze)==0)){
return {klass};
}
}

View File

@ -512,7 +512,7 @@ std::vector<MonoClass*> mono_findklassby_class(std::vector<MonoImage*>& images,c
maybes.push_back(klass);
if(mono_class_get_namespace){
auto namespacename=mono_class_get_namespace(klass);
if(strcmp(namespacename,_namespace)==0){
if(strlen(_namespace)&&(strcmp(namespacename,_namespace)==0)){
return {klass};
}
}