Skip to content

Commit 3cb6642

Browse files
authored
Merge pull request #308 from compnerd/compare-to-zero
SKSupport: update for `BOOL` conversion on Windows
2 parents 738a001 + 4e9430c commit 3cb6642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SKSupport/dlopen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public final class DLHandle {
3131
public func close() throws {
3232
if let handle = rawValue {
3333
#if os(Windows)
34-
guard FreeLibrary(handle) != 0 else {
34+
guard FreeLibrary(handle) else {
3535
throw DLError.close("Failed to FreeLibrary: \(GetLastError())")
3636
}
3737
#else

0 commit comments

Comments
 (0)