]> git.saurik.com Git - ldid.git/commitdiff
Fix swap on MH_DYLDLINK enforce.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 13 Jan 2011 13:18:45 +0000 (05:18 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 13 Jan 2011 13:18:45 +0000 (05:18 -0800)
ldid.cpp

index 8445315db50faee25cfadd604f03525bd7f80b20..c87848059ba4dd83b673193b91185bc026005708 100644 (file)
--- 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));