X-Git-Url: https://git.saurik.com/ldid.git/blobdiff_plain/5525a5a7136af1b5cfbf80acfee879144d4cc74b..ab113d2205a8e142ffccfe3b385877a7330009b9:/ldid.cpp?ds=sidebyside diff --git a/ldid.cpp b/ldid.cpp index 8445315..ff9358d 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -1,5 +1,5 @@ -/* JocStrap - Java/Objective-C Bootstrap - * Copyright (C) 2007 Jay Freeman (saurik) +/* ldid - (Mach-O) Link-Loader Identity Editor + * Copyright (C) 2007-2010 Jay Freeman (saurik) */ /* @@ -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));