File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -185,13 +185,13 @@ private func withTestingLibraryImageAddress<R>(_ body: (ImageAddress?) throws ->
185
185
#elseif os(Linux) || os(FreeBSD) || os(Android)
186
186
// When using glibc, dladdr() is only available if __USE_GNU is specified.
187
187
#elseif os(Windows)
188
- let flags = DWORD ( GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS)
189
- try addressInTestingLibrary. withMemoryRebound ( to: wchar_t. self, capacity: MemoryLayout < UnsafeRawPointer > . stride / MemoryLayout < wchar_t > . stride) { addressInTestingLibrary in
190
- try #require( GetModuleHandleExW ( flags, addressInTestingLibrary, & testingLibraryAddress) )
191
- }
192
- defer {
193
- FreeLibrary ( testingLibraryAddress)
194
- }
188
+ // let flags = DWORD(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS)
189
+ // try addressInTestingLibrary.withMemoryRebound(to: wchar_t.self, capacity: MemoryLayout<UnsafeRawPointer>.stride / MemoryLayout<wchar_t>.stride) { addressInTestingLibrary in
190
+ // try #require(GetModuleHandleExW(flags, addressInTestingLibrary, &testingLibraryAddress))
191
+ // }
192
+ // defer {
193
+ // FreeLibrary(testingLibraryAddress)
194
+ // }
195
195
#else
196
196
#warning("Platform-specific implementation missing: cannot find the testing library image the test suite is linked against")
197
197
#endif
You can’t perform that action at this time.
0 commit comments