Skip to content

Commit bc1bd3b

Browse files
committed
Fix the previous section while I'm in here
1 parent a260e0f commit bc1bd3b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Documentation/Porting.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,13 @@ to load that information:
141141
+ Handle handle = Get1NamedResource('swft', "\p__swift5_types");
142142
+ if (handle && *handle) {
143143
+ size_t size = GetHandleSize(handle);
144-
+ body(*handle, size);
144+
+ auto imageAddress = reinterpret_cast<const void *>(static_cast<uintptr_t>(refNum));
145+
+ SWTSectionBounds sb = { imageAddress, *handle, GetHandleSize(handle) };
146+
+ bool stop = false;
147+
+ body(sb, &stop);
148+
+ if (stop) {
149+
+ break;
150+
+ }
145151
+ }
146152
+ } while (noErr == GetNextResourceFile(refNum, &refNum));
147153
+ UseResFile(oldRefNum);

0 commit comments

Comments
 (0)