X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/5c9d18fc8afb53b7478f4c7e6ab764c52b465769..1fdd7c7aa3b4b5775135c4c58e535caf102207c1:/Decode.cpp diff --git a/Decode.cpp b/Decode.cpp index 1af478c..cf58ad4 100644 --- a/Decode.cpp +++ b/Decode.cpp @@ -166,6 +166,11 @@ CYTypedIdentifier *Enum::Decode(CYPool &pool) const { CYTypedIdentifier *Aggregate::Decode(CYPool &pool) const { _assert(!overlap); + if (signature.count == _not(size_t)) { + _assert(name != NULL); + return $ CYTypedIdentifier($ CYTypeReference(CYTypeReferenceStruct, $I($pool.strdup(name)))); + } + CYTypeStructField *fields(NULL); for (size_t i(signature.count); i != 0; --i) { sig::Element &element(signature.elements[i - 1]);