summaryrefslogtreecommitdiff
path: root/src/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/module.c')
-rw-r--r--src/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/module.c b/src/module.c
index 7dec518..b7a715b 100644
--- a/src/module.c
+++ b/src/module.c
@@ -283,13 +283,13 @@ p11t_module_load(const char *filename)
module = LoadLibrary(filename);
if(!module)
- p11t_msg_fatal("couldn't load library: %s: %s", filename, p11t_msg_lasterr());
+ p11t_msg_fatal("couldn't load library: %s: %s", filename, p11t_msg_os());
/* Lookup the appropriate function in the library */
get_function_list = (CK_C_GetFunctionList)GetProcAddress(module, "C_GetFunctionList");
if(!get_function_list)
p11t_msg_fatal("C_GetFunctionList: couldn't find function in library: %s: %s",
- filename, p11t_msg_lasterr());
+ filename, p11t_msg_os());
#else /* !_WIN32 */