Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion memlib.nim
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ proc buildImportTable(lib: MemoryModule) {.raises: [LibraryError].} =
for desc in codeBase.descriptors(directory):
let
cname = codeBase{desc.Name}[LPCSTR]
handle = LoadLibraryA(cname)
handle = try: LoadLibraryA(cname) except: 0

if handle == 0:
raise newException(LibraryError, $cname & " not found")
Expand Down
2 changes: 1 addition & 1 deletion memlib.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "1.0.0"
version = "1.0.1"
author = "Ward"
description = "Memlib - Load Windows DLL from memory"
license = "MIT"
Expand Down