X-Git-Url: https://git.saurik.com/ldid.git/blobdiff_plain/5525a5a7136af1b5cfbf80acfee879144d4cc74b..35cf35f36a05fb2dbcd723798b87024ea7fa3e1f:/ldid.cpp diff --git a/ldid.cpp b/ldid.cpp index 8445315..c878480 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -580,7 +580,7 @@ int main(int argc, const char *argv[]) { size_t size = _not(size_t); const char *arch; { Framework framework(path); - framework->flags |= MH_DYLDLINK; + framework->flags = framework.Swap(framework.Swap(framework->flags) | MH_DYLDLINK); _foreach (load_command, framework.GetLoadCommands()) { uint32_t cmd(framework.Swap((*load_command)->cmd));