diff --git a/memlib.nim b/memlib.nim index a24eae8..fb4b7a8 100644 --- a/memlib.nim +++ b/memlib.nim @@ -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") diff --git a/memlib.nimble b/memlib.nimble index adf744f..2bcc02c 100644 --- a/memlib.nimble +++ b/memlib.nimble @@ -1,6 +1,6 @@ # Package -version = "1.0.0" +version = "1.0.1" author = "Ward" description = "Memlib - Load Windows DLL from memory" license = "MIT"